0.点击button后去使能,
1.在slot请求返回处,加button使能。
2.点击button后,触发单次定时器,使其再度使能。
QTimer::singleShot(3000, ={ui->pushButton_Save->setEnabled(true);});
点击保存按钮后,只能点击一次
最新推荐文章于 2023-12-15 18:49:18 发布
0.点击button后去使能,
1.在slot请求返回处,加button使能。
2.点击button后,触发单次定时器,使其再度使能。
QTimer::singleShot(3000, ={ui->pushButton_Save->setEnabled(true);});