qt(对话框 QMessageBox)
// QMessageBox::information(this,"消息框","文件已经打开!",QMessageBox::Ok,QMessageBox::NoButton); // QMessageBox::warning(this,"信息对话框","你到底有问题没"); auto result = QMessageBox::question(this,"询问对话框","文件是否已经修改",QMessageBox::Save,QMessageBox::No); if(result == QMessageBox::Save) qDebug()<<"点击的是save"; else if(result == QMessageBox::No) qDebug()<<"点击的是No";