QMessageBox messageBox(QMessageBox::NoIcon,
"标题","内容",
QMessageBox::Yes | QMessageBox::No, NULL);
messageBox.setWindowFlag(Qt::WindowStaysOnTopHint);
int reply=messageBox.exec();
if(reply == QMessageBox::No)
{
}else{
}
QMessageBox messageBox(QMessageBox::NoIcon,
"标题","内容",
QMessageBox::Yes | QMessageBox::No, NULL);
messageBox.setWindowFlag(Qt::WindowStaysOnTopHint);
int reply=messageBox.exec();
if(reply == QMessageBox::No)
{
}else{
}
本文标题:QT 弹出选择对话框,窗口置顶
本文链接:https://www.haomeiwen.com/subject/oasnkrtx.html
网友评论