popupwindow.cpp
712 Bytes
#include "popupwindow.h"
#include "ui_popupwindow.h"
#include <QtDebug>
popupWindow::popupWindow(QWidget *parent,const QString &MsgDesc) :
QMainWindow(parent),
ui(new Ui::popupWindow)
{
ui->setupUi(this);
this->setAttribute(Qt::WA_TranslucentBackground);
this->setWindowFlags(Qt::FramelessWindowHint);
ui->centralwidget->setAttribute(Qt::WA_TranslucentBackground);
ui->centralwidget->setWindowFlags(Qt::FramelessWindowHint);
ui->ctrlWarnDescription->setText(MsgDesc);
connect(ui->ctrlOkBtn, SIGNAL(clicked(bool)), this, SLOT(deleteLater()));
}
popupWindow::~popupWindow()
{
delete ui;
}
void popupWindow::on_ctrlOkBtn_released()
{
qDebug() << "OK btn Released";
}