Oct-23-2019, 06:29 AM
to solve the problem; I proceeded as follows: I group my radiobuttons in a QButtonGroup into Qt Designer, like that :
Then, I integrated the following code in my function ;
Quote:"Select the ones you want to group, and right click on one of them. Then, you'll find an option to "group" the buttons. If you click that, you will notice that a new QButtonGroup has appeared in your object browser in designer. You can select that button group to give it a name, make it exclusive"
Then, I integrated the following code in my function ;
self.checkbox_confirmed .setCheckState(Qt.Unchecked) self.buttonGroup_unite_mesure.setExclusive(False) self.radioButton_degre.setChecked(False) self.radioButton_ddm.setChecked(False) self.buttonGroup_unite_mesure.setExclusive(True)thanks for the previous code posted by Denni, which gave me an idea how to solve my problem