I have 3 QCheckBox'es and I would like to know which one has been checked.
I use this to connect them:
(this is python)Qt Code:
To copy to clipboard, switch view to plain text mode
Thanks
I have 3 QCheckBox'es and I would like to know which one has been checked.
I use this to connect them:
(this is python)Qt Code:
To copy to clipboard, switch view to plain text mode
Thanks
You could use QObject::sender() in the slot code to pick the triggering object.
Alternatively, you could use a QSignalMapper or put your check boxes into a QButtonGroup. Both these options allow your slot to receive a parameter identifying the clicked button.
Yeah! That worked great(self.sender())
Thanks
Bookmarks