PDA

View Full Version : Why is it more efficient to remove an item from a QGraphicsScene before deleting it?



wayfaerer
1st May 2012, 23:11
According to the QGraphicsItem destructor documentation:

"Note: It is more efficient to remove the item from the QGraphicsScene before destroying the item."

Why is that? I can't think of how it could make a difference.