Hi, can i know into slot Slot if i received a signal by ui.treeWidgetA or ui.treeWidgetB?
thxQt Code:
To copy to clipboard, switch view to plain text mode
Hi, can i know into slot Slot if i received a signal by ui.treeWidgetA or ui.treeWidgetB?
thxQt Code:
To copy to clipboard, switch view to plain text mode
Last edited by jacek; 28th November 2007 at 13:45. Reason: wrapped too long lines
You can use QObject::sender(), but it really breaks the concept of signals & slots --- the idea is to have loose coupling, so the receiver shouldn't need to know who sent the signal.
Bookmarks