0
点赞
收藏
分享

微信扫一扫

QT pushbutton 取消焦点

zhoulujun 2022-02-26 阅读 75

1.

2.或者 

    ui->pushButton->setFocus();    //设置默认焦点
    ui->pushButton->setDefault(true);  //设置默认按钮,设置了这个属性,当用户按下回车的时候,就会按下该按钮
举报

相关推荐

0 条评论