I think you have to introduce a layout on the group. The best thing is to
use qdesigner, it will do that for you. If you really need code, this is
cut'n'paste from a generate py-file:

self.buttonGroup4 = QButtonGroup(self,"buttonGroup4")
self.buttonGroup4.setColumnLayout(0,Qt.Vertical)
self.buttonGroup4.layout().setSpacing(6)
self.buttonGroup4.layout().setMargin(11)
buttonGroup4Layout = QHBoxLayout(self.buttonGroup4.layout())
buttonGroup4Layout.setAlignment(Qt.AlignTop)

self.radioButton3 = QRadioButton(self.buttonGroup4,"radioButton3")
buttonGroup4Layout.addWidget(self.radioButton3)
self.radioButton3_2 = QRadioButton(self.buttonGroup4,"radioButton3_2")
buttonGroup4Layout.addWidget(self.radioButton3_2)

-- 
Regards,

Diez B. Roggisch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to