I have a GUI with many check boxes (in python). users should click many check boxes to run the application. I want to create a button that automatically select and "clicks" some predefined check boxes.
I know how to create the button, and also have the application "know" the check box is checked.
however, when looking at the GUI, the check boxes are left empty, so the user doesn't know which check box is checked. see below the check box definition:
class Ui_Dialog(object):
def setupUi(self, Dialog):
QtCore.QObject.connect(self.legacyrunsens,
QtCore.SIGNAL(_fromUtf8("stateChanged(int)")), legacychecksens)
so, I call legacychecksens(2) , but on the GUI the checkbox is not marked.