[PyQt] PyQt5 qwebview not found in qtwebkit

Baz Walter bazwal at ftml.net
Thu Jul 30 18:47:29 BST 2015


On 30/07/15 15:22, Rembrand at daxLAB wrote:
> I'm trying to port my PyQt4 app to PyQt5. One of the reasons is that
> I want WebKit2 functionality. The PyQt Riverbank website states that
> QtWebKit is WebKit2 and QtWebKitWidgets is using Webkit1.
>
> However I can't find the QWebView inside QtWebKit. I can find however
> QWebView inside QtWebKitWidgets (but that is not what I want to use
> since it is WebKit1 according to the Riverbank website).

The Qt WebKit module uses WebKit2, but is QML only. The Qt WebKit 
Widgets module uses WebKit1, but is widget-based. Qt has officially 
deprecated both these modules, and there are no plans to port Qt WebKit 
Widgets to use WebKit2.

The Qt WebKit module does have the WebView QML type, but it has a 
severely limited API compared to QWebView. However, if your requirements 
are very simple, I suppose you could use it inside a QQuickView or 
something (I'm guessing a bit here, though, because I haven't used QML 
very much yet).

--
Regards
Baz Walter


More information about the PyQt mailing list