Hello,
I'm new to C++ and Qt. I was wondering if the methods used to connect signals with slots actually get called/executed? (I realize the slot gets called, otherwise it wouldn't be too useful
) For example...
connect( this, SIGNAL( signalMethod( int signalArg ) ), someObject, SLOT( slotMethod( int slotArg ) ) );
connect( this, SIGNAL( signalMethod( int signalArg ) ), someObject, SLOT( slotMethod( int slotArg ) ) );
To copy to clipboard, switch view to plain text mode
when I emit the signal with...
emit signalMethod( someInt );
emit signalMethod( someInt );
To copy to clipboard, switch view to plain text mode
does the method "signalMethod()" get called with the argument "someInt" (if it is defined in the class) before the signal is delivered or is it just a placeholder of some sort for the moc?
Put another way if the signalMethod has code associated with it in the class definition, does that determine if it gets called or not?
Thanks for any insight.
Bookmarks