big_shuozi 2016-06-28 02:35 采纳率: 66.7%
浏览 6366
已采纳

qt中 怎么把ButtonGroup中的radioButton全部设为已选中

如题 ,把buttongroup中的button全部设为已被选中

  • 写回答

5条回答 默认 最新

  • Valtava 2016-06-28 04:53
    关注

    不可能,同一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>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python