QDialogButtonBox类就这种 button 就相当于 MessageBox 函数的 最后一个参数  所指定的 不同 按类型组合 

  可以时    Yes No   组合按钮      也可以时   OK   CANCEL 组合  等等

 

下面这段代码

buttonBox->button(QDíalogButtonBox::Ok)->setEnabled(lineEdit->hasAcceptab lelnput ( ).) ;   就是用来根据状况来 决定是否禁用  OK CANCEL  组中  的 OK  按钮的

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-05-20
  • 2021-06-04
  • 2021-11-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-12-02
  • 2021-07-29
  • 2021-08-04
  • 2022-12-23
相关资源
相似解决方案