Skip to content Skip to sidebar Skip to footer

Modulenotfounderror: No Module Named 'qwebengineview'

I have been using the QT designer tool which saves GUIs as a XML template. PySide2 is able to covert this to a Python Class file. Utilizing the tool for an XML that includes QWebEn

Solution 1:

Here is another option, you don't have it.

Then try this option:

fromPyQt5importQtWebEngineWidgets

That is, an example of a string:

self.webView = QtWebEngineWidgets.QWebEngineView(self.centralwidget)

But, unfortunately Qt, PyQt and PySide should never be used together. Most problems occur when trying to re-display a widget created with a binding with another one created with a different binding.

The solution is simple: you either use PyQt5 and use QtWebEngineWidgets, or PySide2.

As a last resort, try installing a newer version (5.12)(PyQt5) and install PyQtWebEngine separately.

Solution 2:

Ultimately I stuck to PySide2 (option 2), creating a new project specific python environment that did not involve PyQt5. This prevented the application from hanging with zero console errors.

Post a Comment for "Modulenotfounderror: No Module Named 'qwebengineview'"