QMessageBox判斷yes no

實際上應該有各類各樣的方法,本人用的qt5 creater裏面目前只有這個有效。web if(QMessageBox::Yes == QMessageBox::question(this,QStringLiteral("title"),QStringLiteral("yes or no?"),QMessageBox::Yes | QMessageBox:: No)) {
相關文章
相關標籤/搜索