I have an object in python that is derived from QtGui.QGraphicsPixmapItem with several basic attributes and methods. After calling deepcopy in a link to this object, I get the error underlying C/C++ object has been deleted when I try to use a copy. I got this error earlier, and it happened when I did not call the base class constructor in __init__ , so I assume that this error is due to the fact that QtGui.QGraphicsPixmapItem not copied.
How do I determine this? All I know is the __deepcopy__ method for this purpose.
source share