Related to PyQt 4.6.1
When deleting/removing a sub classed QGraphicsLineItem:
Qt Code:
self.scene().removeItem(item) del itemTo copy to clipboard, switch view to plain text mode
the function
is not getting called.Qt Code:
def __del__(self): print "I am dead"To copy to clipboard, switch view to plain text mode
How do I call a function when a graphic item is going to delete?
Bookmarks