popupwindow.cpp 463 Bytes
#include "popupwindow.h"
#include "ui_popupwindow.h"

popupWindow::popupWindow(QWidget *parent) :
    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);
}

popupWindow::~popupWindow()
{
    delete ui;
}