I have an object in python that is derived from QtGui.QGraphicsPixmapItem with a few basic attributes and methods. After calling deepcopy on a reference to this object, I get an error saying that underlying C/C++ object has been deleted when I try to use the copy. I had received this error before, and it occured when I didn't call the base class' constructor in __init__ so I assume this error is because the QtGui.QGraphicsPixmapItem is not being copied.
How do I go about specifying this? All I know is that there is a __deepcopy__ method for this purpose.