Is it safe to connect a signal to a slot in an object that might be deleted by the time the signal is emitted?
I.e I want the signal to be ignored with no error message if the receiver has fallen off its perch and is pushing up the daisies.![]()
Is it safe to connect a signal to a slot in an object that might be deleted by the time the signal is emitted?
I.e I want the signal to be ignored with no error message if the receiver has fallen off its perch and is pushing up the daisies.![]()
Safe !! No probs.
drhex (10th August 2009)
Unless the object gets deleted as a result of emitting a signal (i.e. in a slot connected to its own signal).
Bookmarks