Hi All,
Why my slot does not display 'qdebug()' text?
Class A
--> instance to B
--> Catch Signal and running local slot.
Class B
--> emit signal
attached the complete code..
Regards,
Mardi
Hi All,
Why my slot does not display 'qdebug()' text?
Class A
--> instance to B
--> Catch Signal and running local slot.
Class B
--> emit signal
attached the complete code..
Regards,
Mardi
Because SecondClass emits signal before connecting.
mardi (26th November 2012)
Use connect in either first or second class and emit it after that.
The example is trying to emit a signal in an object's constructor.
Naturally it can't be connected yet since the object does not exist yet at this point.
So the fix is not to connect differently but to not emit signals from a constructor.
Cheers,
_
Bookmarks