QMessageBox判断yes no

实际上应该有各类各样的方法,本人用的qt5 creater里面目前只有这个有效。web if(QMessageBox::Yes == QMessageBox::question(this,QStringLiteral("title"),QStringLiteral("yes or no?"),QMessageBox::Yes | QMessageBox:: No)) {
相关文章
相关标签/搜索