I have 3 QCheckBox'es and I would like to know which one has been checked.
I use this to connect them:
QObject.
connect(self.
ui.
checkbox1,
SIGNAL("toggled(bool)"), self.__on_check
) QObject.
connect(self.
ui.
checkbox2,
SIGNAL("toggled(bool)"), self.__on_check
) QObject.
connect(self.
ui.
checkbox3,
SIGNAL("toggled(bool)"), self.__on_check
)
QObject.connect(self.ui.checkbox1, SIGNAL("toggled(bool)"), self.__on_check)
QObject.connect(self.ui.checkbox2, SIGNAL("toggled(bool)"), self.__on_check)
QObject.connect(self.ui.checkbox3, SIGNAL("toggled(bool)"), self.__on_check)
To copy to clipboard, switch view to plain text mode
(this is python)
Thanks
Bookmarks