QMessage自动定时关闭

 

QMessageBox *box = new QMessageBox(QMessageBox::Information,tr("test"),tr("testtest"));
QTimer::singleShot(1500,box,SLOT(accept()));
box->exec();

 

posted on 2020-03-10 14:23  liujx2019  阅读(965)  评论(0编辑  收藏  举报

导航