Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Build Qt WebEngine for PyQt5?

Qt WebEngine This link show python wrapper for Qt WebEngine . Please can canyone tell me how can i add this in pyqt5 environment? Thanks!!!

like image 468
raman.pndy Avatar asked Oct 13 '15 16:10

raman.pndy


1 Answers

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

like image 193
Ehvince Avatar answered Sep 18 '22 21:09

Ehvince