PDA

View Full Version : signal to dead object



drhex
10th August 2009, 09:01
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. :rolleyes:

yogeshgokul
10th August 2009, 09:05
Safe !! No probs.

wysota
12th August 2009, 00:11
Unless the object gets deleted as a result of emitting a signal (i.e. in a slot connected to its own signal).