1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/test/cmdwidget/cmdwidget.cpp
2017-11-25 17:55:19 +08:00

19 lines
394 B
C++

#include "cmdwidget.h"
#include "ui_cmdwidget.h"
#include <QDesktopWidget>
CmdWidget::CmdWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::CmdWidget)
{
ui->setupUi(this);
setWindowFlags(Qt::FramelessWindowHint);
move(qApp->desktop()->width() / 2 - width() / 2,
qApp->desktop()->height() / 2 - height() / 2 - 100);
}
CmdWidget::~CmdWidget()
{
delete ui;
}