判断QmessageBox点击的按钮

xiaoxiao2021-02-28  167

int r = QMessageBox::information(this, tr("提示"), tr("数值超出范围,是否保存修改?"), QObject::tr(("确认")) , QObject::tr(("取消"))); if (r == QObject::tr(("确认")).toInt()) { writePara(GlobalVariables::selectWindow); this->close(); }
转载请注明原文地址: https://www.6miu.com/read-83610.html

最新回复(0)