[PyQt] PyQt 5.8.1: No module named 'PyQt5.QtWebKitWidgets'
Zdenko Podobný
zdenop at gmail.com
Mon Mar 20 15:26:17 GMT 2017
Hello,
I am upgrading older project that use (in file info.ui) QWebView. When I
convert ui file with pyuic5 (version 5.8.1) I got output that has these
lines...
...
self.textBrowser = QtWebKitWidgets.QWebView(self.widget)
....
from PyQt5 import QtWebKitWidgets
When I run the script I got error:
from PyQt5 import QtWebKitWidgets
ImportError: cannot import name 'QtWebKitWidgets'
According doc[1] there should be class PyQt5.QtWebKitWidgets.QWebView
Is it a bug (pyuic5) or did I miss something?
<http://pyqt.sourceforge.net/Docs/PyQt5/api/qwebview.html#PyQt5.QtWebKitWidgets.QWebView>
[1] http://pyqt.sourceforge.net/Docs/PyQt5/api/qwebview.html
Zdenko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170320/cf77ad35/attachment.html>
More information about the PyQt
mailing list