When you start the animation, you can use the pass the argument QAbstractAnimation:eleteWhenStopped to the start function of the QPropertyAnimation.
removeItem will not delete the graphicsItem. It will just remove it from the scene, hence its child, the QPropertyAnimation will not be deleted.
To delete all the graphical items, use 'clear' slot of the graphicsscene.
Bookmarks