I have installed PyQt5 for Python3. However while I can import various modules into Python I am finding that none of the WebEngine modules import (WebEngine, WebEngineWidgets, WebEngineCore). They dont appear to be there.
from PyQt5 import QtCore, QtGui, QtWidgets, QtWebEngineWidgets, uic
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(1366, 768)
self.verticalLayout = QtWidgets.QVBoxLayout(Form)
self.verticalLayout.setObjectName("verticalLayout")
self.widget = QtWebEngineWidgets.QWebEngineView(Form)
self.widget.setObjectName("widget")
self.verticalLayout.addWidget(self.widget)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Form"))
if __name__ == "__main__":
import os, sys
app = QtWidgets.QApplication(sys.argv)
ui_path = os.path.join(os.path.dirname(__file__), "ui/browser.ui")
window = uic.loadUi(ui_path)
window.widget.load(QtCore.QUrl("http://192.168.2.128:5000/"))
window.show()
sys.exit(app.exec_())
Is there no support for the WebEngine modules of PyQt on the Raspberry Pi and if so then any other alternatives to solve this issue?