问题
Qt WebEngine This link show python wrapper for Qt WebEngine . Please can canyone tell me how can i add this in pyqt5 environment? Thanks!!!
回答1:
It seems I got it working:
Either install pyqt
version 5.10, which still ships the web engine,
either install a newer (I use 5.12) and install PyQtWebEngine
separately.
pip3 install PyQtWebEngine
Now these imports work:
from PyQt5.QtWebEngineWidgets import QWebEnginePage
from PyQt5.QtWebEngineWidgets import QWebEngineView
I can't tell you the whys, I didn't find any explanation, just a clue here: PyQt 5.11 missing WebEngine modules
来源:https://stackoverflow.com/questions/33108133/how-to-build-qt-webengine-for-pyqt5