3

how do I select all checkboxes in

 qbuttongroup

in python ?

    self.group = QtGui.QButtonGroup() 
ekhumoro
  • 115,249
  • 20
  • 229
  • 336
manChan
  • 73
  • 2
  • 9

1 Answers1

2

Iterate over them using the buttons() method:

def setAllButtonsChecked(self, checked=True)
    for button in self.group.buttons():
        button.setChecked(checked)
ekhumoro
  • 115,249
  • 20
  • 229
  • 336