[PyQt] QVariant API 2 and QtGui.QGraphicsProxyWidget.itemChange()

Phil Thompson phil at riverbankcomputing.com
Fri Dec 3 14:43:10 GMT 2010

On Wed, 1 Dec 2010 08:37:05 -0600, Aron Bierbaum <aronbierbaum at gmail.com>
> I believe that we have found a bug with the conversion of QVariant
> objects in the QGraphicsProxyWidget.itemChange() method when using the
> API 2 version. The issue seems to be related to the fact that when we
> try to call setParent() on a graphics item that has overriden the
> itemChange() method, the change is not accepted. It appears that even
> if we directly return the value from
> QtGui.QGraphicsProxyWidget.itemChange(), the value is somehow getting
> reset to an empty QVariant. Any ideas on what could be going wrong. I
> have attached a simple example that shows the behavior.
> We are using Qt 4.7.1 & PyQt 4.8.1 on Windows 7.

It's actually a general problem, not specific to the QVariant API.

Fixed in tonight's snapshot.


More information about the PyQt mailing list