0
只有在選擇了其中一個單選按鈕並記住按下的內容時,我才需要進入嚮導中的下一頁。若要在QWizard中指定必需的字段組QRadioButton
我班QWizardPage:
rb1 = QRadioButton('Button 1')
rb2 = QRadioButton('Button 2')
rb3 = QRadioButton('Button 3')
group = QButtonGroup()
group.addButton(rb1)
group.addButton(rb2)
group.addButton(rb3)
registerField('regFile*', group, group.buttonClicked)
錯誤消息:
TypeError: registerField(self, str, QWidget, property: str = None, changedSignal: PYQT_SIGNAL = 0): argument 2 has unexpected type 'QButtonGroup'
附: Python3 & PtQt5