How To Build Qt WebEngine for PyQt5?

后端 未结 1 1545
情歌与酒
情歌与酒 2021-01-18 03:01

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条回答
  • 2021-01-18 03:44

    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

    0 讨论(0)
提交回复
热议问题