[PyQt] PyQt5 qwebview not found in qtwebkit

Rembrand at daxLAB rembrand at daxlab.com
Sat Aug 1 07:29:25 BST 2015



Thank you Baz

So that makes sense. Now since I dont have QML exeperience either, I would go for QWebEngineView. However since that is compiled with MSVC2010 and Python with MSVC2009 or MSVC2009) it might not run according to Riverbank website. So new questions rise again....

Q1)
Does anybody have QWebEngineView up and running with PyQt5 on Windows? Note here: I do develop not only for Windows but Windows might be the pain in the ....

Q2)
Is it realy a problem to have QWebEngineView running alongside Python 2.x?  I mean, it is afterall part of Qt5 and that works whith PyQt5 without problems. 

Q3) 
How difficult is it to compile Python 2.7.x on Windows with a MSVC2010 based compiler? I mean is it like starting, "configure",  "make" and "make install" (or something similar) or is it a lot more work? Note: I can read C and C++ code but is not my day to day thing I do.

BTW: I will give it a try on Windows this weekend anyway but I'm still busy porting my app from PyQt4 to PyQt5 on Linux in the first place.
 

Any thougths and ideas are welcome!



From: pyqt-request at riverbankcomputing.com
To: rembrand at daxlab.com
Received at: 2015_Aug_01_07:59


Send PyQt mailing list submissions to
	pyqt at riverbankcomputing.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.riverbankcomputing.com/mailman/listinfo/pyqt
or, via email, send a message with subject or body 'help' to
	pyqt-request at riverbankcomputing.com

You can reach the person managing the list at
	pyqt-owner at riverbankcomputing.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of PyQt digest..."


Today's Topics:

   1. PyQt5 qwebview not found in qtwebkit (Rembrand at daxLAB)
   2. Re: PyQt5 qwebview not found in qtwebkit (Baz Walter)
   3. crash on app exit only if sys.exit (oliver)


----------------------------------------------------------------------

Message: 1
Date: Thu, 30 Jul 2015 16:22:17 +0200
From: Rembrand at daxLAB<rembrand at daxlab.com>
To: PyQt mailing list <pyqt at riverbankcomputing.com>
Subject: [PyQt] PyQt5 qwebview not found in qtwebkit
Message-ID: <FileOneMail_42895_20150730162214881933 at daxlab.com>
Content-Type: text/plain; charset="utf-8"

Dear all

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).


>>> from PyQt5 import QtWebKit
>>> dir(QtWebKit)
['QWebDatabase', 'QWebElement', 'QWebElementCollection', 'QWebHistory', 'QWebHistoryInterface', 'QWebHistoryItem', 'QWebPluginFactory', 'QWebSecurityOrigin', 'QWebSettings', '__doc__', '__file__', '__name__', '__package__', 'qWebKitMajorVersion', 'qWebKitMinorVersion', 'qWebKitVersion']

>>> from PyQt5 import QtWebKitWidgets
>>> dir(QtWebKitWidgets)
['QGraphicsWebView', 'QWebFrame', 'QWebHitTestResult', 'QWebInspector', 'QWebPage', 'QWebView', '__doc__', '__file__', '__name__', '__package__']



Q1)
How do I get WebKit2 (QWebView) functionality? 

Q2)
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)?

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.

Regards,
Rembrand.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150730/0bcf0e2b/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 30 Jul 2015 18:47:29 +0100
From: Baz Walter <bazwal at ftml.net>
To: pyqt at riverbankcomputing.com
Subject: Re: [PyQt] PyQt5 qwebview not found in qtwebkit
Message-ID: <55BA6331.60306 at ftml.net>
Content-Type: text/plain; charset=utf-8; format=flowed

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


------------------------------

Message: 3
Date: Thu, 30 Jul 2015 18:32:23 -0400
From: oliver <oliver.schoenborn at gmail.com>
To: pyqt at riverbankcomputing.com
Subject: [PyQt] crash on app exit only if sys.exit
Message-ID:
	<CAMb+DaV=aOjgiwQNzAuzNXC-9y7_h=L3TkERcUxTURitfRp1ag at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Using PyQt 5.3 (from binary distribution), our application exits fine if
the last line is app.exec(), but it crashes intermittently on exit if the
last line is sys.exit(app.exec()). Based on documentation & examples &
search, calling sys.exit() should be fine. So I'm thinking that whatever is
causing this is still a problem but "normal" exit (by reaching end of
python file) does something differently (maybe GC) that doesn't trigger the
area of memory that got corrupted. Any suggestions would be much
appreciated.

-- 
Oliver
Author of these Open Source: PyPubSub <http://pubsub.sf.net>, Lua-iCxx
<http://lua-icxx.sf.net>, iof <http://iof.sf.net>
Regular contributor on StackOverflow
<http://stackoverflow.com/users/869951/schollii>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150730/2bdb04be/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
PyQt mailing list
PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

------------------------------

End of PyQt Digest, Vol 132, Issue 29
*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150801/99ef979e/attachment-0001.html>


More information about the PyQt mailing list