switch (QMessageBox::question(this,tr("手动选择完成?"),tr("手动选择完成且正确"),
QMessageBox::Yes|QMessageBox::No,QMessageBox::Yes))
{
case QMessageBox::Yes:
break;
case QMessageBox::No:
//qDebug()<<"点击Discard";
break;
default:
break;
}
来源:CSDN
作者:yxp1992
链接:https://blog.csdn.net/yxp1992/article/details/103680112