Unsolved Understanding Edge Cases in Signal/Slot Interactions
-
Hi there!
I'm looking to understand the edge cases where a signal may not be emitted. Is a QObject guaranteed to always emit a destroyed signal?
-
@fizzygig said in Understanding Edge Cases in Signal/Slot Interactions:
Is a QObject guaranteed to always emit a destroyed signal?
If it would be the case then it would be in the documentation: https://doc.qt.io/qt-5/qobject.html#destroyed
-
@christian-ehrlicher Since it does not state that it is guaranteed, then it isn't. Good to know.
-
@fizzygig said in Understanding Edge Cases in Signal/Slot Interactions:
Since it does not state that it is guaranteed, then it isn't.
Wrong. "This signal is emitted immediately before the object obj is destroyed" - if this wouldn't be true for a case then it had to be documented so anyone reading the documentation is aware of it.