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

Aron Bierbaum aronbierbaum at gmail.com
Wed Dec 1 14:37:05 GMT 2010


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.

Thanks,
Aron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_set_parent.py
Type: application/octet-stream
Size: 2011 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101201/99a467ca/attachment.obj>


More information about the PyQt mailing list