QPushButton

来源:互联网 发布:vivo刷机软件 编辑:程序博客网 时间:2024/09/21 09:21

findPushButton=new QPushButton(tr("&Find"));

findPushButton->setDefault(true);//将按钮设置成默认选项,即按下Enter键,会执行该按钮

findPushButton->setEnabled(false);//将按钮禁用,当禁用了某个窗口部件时,它通常会显示灰色,并且不能和用户发生交互操作

0 0
原创粉丝点击