<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans','Bitstream Vera Sans','Arial','Verdana','sans-serif','Sans Serif','MS Shell Dlg 2'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">Dear all</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">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.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">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).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">>>> from PyQt5 import QtWebKit</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">>>> dir(QtWebKit)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">['QWebDatabase', 'QWebElement', 'QWebElementCollection', 'QWebHistory', 'QWebHistoryInterface', 'QWebHistoryItem', 'QWebPluginFactory', 'QWebSecurityOrigin', 'QWebSettings', '__doc__', '__file__', '__name__', '__package__', 'qWebKitMajorVersion', 'qWebKitMinorVersion', 'qWebKitVersion']</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">>>> from PyQt5 import QtWebKitWidgets</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">>>> dir(QtWebKitWidgets)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">['QGraphicsWebView', 'QWebFrame', 'QWebHitTestResult', 'QWebInspector', 'QWebPage', 'QWebView', '__doc__', '__file__', '__name__', '__package__']</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">Q1)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">How do I get WebKit2 (QWebView) functionality? </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">Q2)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">Can I use WebEngine instead even when I port my app to Windows (Riverbank site states due to compiler used it does not run on Windows)?</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">Note: I use QWebView as a simple browser but more and more sites do have problems with WebKit1. More specific with multimedia and Java (youtube.com site is a nice test that gives a poor result on Mac OSX and on some Linux flavors) . Using WebKit1 in Mac OSX seems even outdated..... I assume that WebKit2 is not like WebKit1.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">Regards,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;">Rembrand.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px;"> </p></body></html>