[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QGraphicsItem.childItems() returns objects of wrong type
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2015-03-17 17:14:36
Message-ID: 5e111558c4ffa41c0d8c3236f768cce2 () riverbankcomputing ! com
[Download RAW message or body]

On 17/03/2015 5:05 pm, Erik Hvatum wrote:
> Test case attached.
> 
> Execution transcript:
> 
> [11:53 AM][ehvatum@pincuslab-scope:~/zplrepo/ris_widget]> dpython t.py
> QML debugging is enabled. Only use this in a safe environment.
> type(child): <class '__main__.Child'>, child.objectName(): Hi!  I am
> an instance of Child!
> type(parent.childItems()[0]): <class
> 'PyQt5.QtMultimediaWidgets.QGraphicsVideoItem'>,
> parent.childItems()[0].objectName(): Hi!  I am an instance of Child!
> 
> I expected parent.childItems()[0] to be a Child, not a
> PyQt5.QtMultimediaWidgets.QGraphicsVideoItem.
> 
> I see this on Linux with PyQt-gpl-5.4.2-snapshot-3fd70eec66b9 and OS X
> with an older PyQt5 release (haven't tested this on other platforms).

http://www.riverbankcomputing.com/pipermail/pyqt/2015-January/035302.html

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic