[PyQt] WebEngineView Multi platform _Win, Lin, Mac_ desktop experience
Rembrand at daxLAB
rembrand at daxlab.com
Thu Jun 23 11:33:07 BST 2016
@detlev,
Super, that gives me some trust. I had such different and varying results with Qt5.4 and 5.5 (on different Linux platforms the most problems). I will go for Qt5.6 or when available Qt5.7.
From: pyqt-request at riverbankcomputing.com
To: rembrand at daxlab.com
Received at: 2016_Jun_23_11:15
Send PyQt mailing list submissions to
pyqt at riverbankcomputing.com
To subscribe or unsubscribe via the World Wide Web, visit
https://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. WebEngineView Multi platform _Win, Lin, Mac_ desktop
experience (Rembrand at daxLAB)
2. Re: WebEngineView Multi platform _Win, Lin, Mac_ desktop
experience (Detlev Offenbach)
3. Re: Issue with PyQt5.6 wheel on OS X with QGraphicsItemGroup
addToGroup (Nick)
----------------------------------------------------------------------
Message: 1
Date: Mon, 20 Jun 2016 18:31:15 +0200
From: Rembrand at daxLAB<rembrand at daxlab.com>
To: PyQt mailing list <pyqt at riverbankcomputing.com>
Subject: [PyQt] WebEngineView Multi platform _Win, Lin, Mac_ desktop
experience
Message-ID: <FileOneMail_51144_20160620183112823612 at daxlab.com>
Content-Type: text/plain; charset="utf-8"
Dear all,
Can I replace my QWebView (from WebKit) safely with QWebEngineView when I want my application to run on Windows, Linux and Mac OSX?
I'm asking since I had a hard time to get it stable/or even running on all 3 platforms with Qt 5.5.1.
Is anybody out there with experience on one or all mentioned platforms. I also got the feeling that there are a lot more dependencies involved (not always available on vanila test/targetes user systems).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160620/77b4d08f/attachment-0001.html>
------------------------------
Message: 2
Date: Mon, 20 Jun 2016 18:59:11 +0200
From: Detlev Offenbach <detlev at die-offenbachs.de>
To: pyqt at riverbankcomputing.com, Rembrand at daxLAB
<rembrand at daxlab.com>
Subject: Re: [PyQt] WebEngineView Multi platform _Win, Lin, Mac_
desktop experience
Message-ID: <2418187.Ad0QHQJ6dl at saturn>
Content-Type: text/plain; charset="utf-8"
Hi,
the eric6 web browser has already be ported to QWebEngine (eric software repository,
default branch). It works quite fine on all these platforms with Qt 5.6. Before that the
QWebEngine widgets are really limited in functionality. The only platform I had issues was
(and still is) Qt 5.6 on Arm Linux (ODroid XU4).
Detlev
On Monday 20 June 2016, 18:31:15 Rembrand at daxLAB wrote:
> Dear all,
>
> Can I replace my QWebView (from WebKit) safely with QWebEngineView when I
> want my application to run on Windows, Linux and Mac OSX? I'm asking since
> I had a hard time to get it stable/or even running on all 3 platforms with
> Qt 5.5.1.
>
> Is anybody out there with experience on one or all mentioned platforms. I
> also got the feeling that there are a lot more dependencies involved (not
> always available on vanila test/targetes user systems).--
*Detlev Offenbach*
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160620/2a1a5c58/attachment-0001.html>
------------------------------
Message: 3
Date: Mon, 20 Jun 2016 13:25:03 -0400
From: Nick <a.grinner at gmail.com>
To: pyqt at riverbankcomputing.com
Subject: Re: [PyQt] Issue with PyQt5.6 wheel on OS X with
QGraphicsItemGroup addToGroup
Message-ID:
<CAMCN4CnjSMwxX3L_19z4VnvMhZ=+jmB+6iBH=6fY4WKbqenPTA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I've reproduced this bug also on Windows x64 in PyQt 5.6. It is related to
subclassed QGraphicsItems who have `itemChange()` implemented. Here is the
code that reproduces the bug I see and that produces different results in
PyQt5.5.1 and prior (and worked in PyQt4 as well for what it's worth) with
and without itemChange() implemented in the subclass. Output appears at
the bottom.
from PyQt5.QtWidgets import QGraphicsItem, QGraphicsRectItem,
QGraphicsItemGroup
class MyItemGroup(QGraphicsItemGroup):
def __init__(self, parent=None):
super(MyItemGroup, self).__init__(parent)
def __repr__(self):
return str(type(self).__name__)
class MyRectItemNOIC(QGraphicsRectItem):
def __init__(self, parent=None):
super(MyRectItemNOIC, self).__init__(parent)
def __repr__(self):
return str(type(self).__name__)
class MyRectItem(QGraphicsRectItem):
def __init__(self, parent=None):
super(MyRectItem, self).__init__(parent)
def __repr__(self):
return str(type(self).__name__)
def itemChange(self, change, value):
return QGraphicsRectItem.itemChange(self, change, value)
if __name__ == '__main__':
a = MyRectItem()
b = MyRectItem(a)
item_group = MyItemGroup()
print("parent:", b.parentItem())
item_group.addToGroup(b)
print(item_group.childItems(), b.parentItem())
c = MyRectItemNOIC(a)
print("\nparent NOIC:", c.parentItem())
item_group.addToGroup(c)
print(item_group.childItems(), c.parentItem())
Output:
parent: MyRectItem
[] None
parent NOIC: MyRectItem
[MyRectItemNOIC] MyItemGroup
On Thu, Jun 16, 2016 at 2:25 PM, Nick <a.grinner at gmail.com> wrote:
> I've compared PyQt-gpl-5.5.1-snapshot-13f9ece29d02 code with the PyQt-gpl-5.6
> code and see no difference nor in the Qt 5.3 and 5.6 qgraphicsitem.cpp.
>
> Could this be a sip regression I'm seeing?
>
> In general everything about the 5.6.x builds and execution seems normal in
> my code except this addToGroup issue I see with custom objects.
>
> the problem persists in PyQt-gpl-5.6.1-snapshot as well when I build from
> source.
>
> In summary on OS X:
>
> Python 3.5 with PyQt5.5.1 works
> Python 3.5 with PyQt5.6.1-snapshot fails to addToGroup()
> Python 3.5 with PyQt5.6.0 fails
> Python 3.4 with PyQt5.5.1 works
>
> I can work on a simple case reproduction if that helps as well.
>
> -Nick
>
> On Wed, Jun 15, 2016 at 7:41 PM, Nick <a.grinner at gmail.com> wrote:
>
>> Actually my code works as of a build of
>> PyQt-gpl-5.5.1-snapshot-13f9ece29d02
>>
>> Thanks,
>>
>> -Nick
>>
>> On Wed, Jun 15, 2016 at 7:29 PM, Nick <a.grinner at gmail.com> wrote:
>>
>>> I have working code that I can run in a self built PyQt5.3 build that
>>> ceases to work in the wheel from pypi of PyQt5.6 for OS X. Specifically
>>> addToGroup() fails. Did something change in the Qt5.x or PyQt5.x source
>>> from 5.3 to 5.6 related to this that anyone is aware of?
>>>
>>> In 5.6 when I call addToGroup of subclassed QGraphicsItem, the
>>> parentItem of the Item becomes None and therefore calls to
>>> group.childItems() return an empty list, whereas with no code changes in
>>> the 5.3 I built the calls behave as intended.
>>>
>>> I have not yet tested on Windows.
>>>
>>> Thanks,
>>>
>>> -Nick
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160620/52e9c73f/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
PyQt mailing list
PyQt at riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
------------------------------
End of PyQt Digest, Vol 143, Issue 24
*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160623/693e903b/attachment-0001.html>
More information about the PyQt
mailing list