如题 ,把buttongroup中的button全部设为已被选中
不可能,同一groupbox的radiobutton只能同时选中一个:
A QRadioButton is an option button that can be switched on (checked) or off (unchecked). Radio buttons typically present the user with a "one of many" choice. In a group of radio buttons **only one** radio button at a time can be checked; if the user selects another button, the previously selected button is switched off. <http://doc.qt.io/qt-5/qradiobutton.html>
n你可以使用checkBox。
有知道吗 把ButtonGroup中的button设为已选中 或者都不选择
已解决 buttongroup的buttons函数 返回每个button 然后循环设置
错的吧,buttongroup里的按钮同时只能选中一个。