Qt弹出消息对话框

添加头文件

#include <QMessageBox>
if(ui->lineEditXStart->text().isEmpty()) //判断lineedit输入内容是否为空
    {
        QMessageBox::information(this,tr("Error"),QStringLiteral("请输入相机参数"),QMessageBox::Ok);
        return;

    }
posted @ 2015-01-21 16:02  CrazyDiode  阅读(3258)  评论(0编辑  收藏  举报