I am creating a PyQt QGraphicsView project where some QGraphicItems can move between different QGraphicsItemGroups. To do this, I use the addItemToGroup () method for the "new" parent group of elements.
This works fine, but only until I define the itemChange () method in my child class. As soon as I define this method (even if I just pass the function call to the superclass), childItems will not be added to ItemGroups no matter what I try.
class MyChildItem(QtGui.QGraphicsItemGroup): def itemChange(self, change, value):
Am I just too stupid to properly call the superclass method in Python, or is this a problem somewhere in QT / PyQT magic?
I am using Python 3.3 with PyQt 4.8 and QT 5.
source share