How to build Qt WebEngine for PyQt5?

Qt WebEngine This link shows the Python shell for Qt WebEngine. Please, can someone tell me how can I add this in PyQT5? Thanks!!!

+5
source share
1 answer

Everything seems to work out:

Or install pyqtversion 5.10, which still comes with a web engine,

either install a newer version (I use 5.12) and install PyQtWebEngineseparately.

pip3 install PyQtWebEngine

Now this import works:

from PyQt5.QtWebEngineWidgets import QWebEnginePage
from PyQt5.QtWebEngineWidgets import QWebEngineView

I can’t tell you why, I didn’t find any explanation, just a hint here: PyQt 5.11, missing WebEngine modules

+2

Source: https://habr.com/ru/post/1611472/


All Articles