#include "errorpopupdlg.h" #include "ui_errorpopupdlg.h" errorPopupDlg::errorPopupDlg(QWidget *parent, const QString &MsgDesc) : QDialog(parent), ui(new Ui::errorPopupDlg) { ui->setupUi(this); this->setAttribute(Qt::WA_TranslucentBackground); this->setWindowFlags(Qt::FramelessWindowHint); ui->centralwidget->setWindowFlags(Qt::FramelessWindowHint); ui->ctrlWarnDescription->setText(MsgDesc); } errorPopupDlg::~errorPopupDlg() { delete ui; } void errorPopupDlg::on_ctrlOkBtn_released() { deleteLater(); }