1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/examples/qqtframe/qqtwindow.cpp
2018-04-22 16:17:15 +08:00

35 lines
685 B
C++

#include "qqtwindow.h"
#include "ui_qqtwindow.h"
#include "qqtobjectmanager.h"
#include "qqt-qt.h"
#include "qqtcore.h"
#include "qqtwidgets.h"
QQTWindow::QQTWindow(QWidget *parent) :
QStackedWidget(parent),
ui(new Ui::QQTWindow)
{
ui->setupUi(this);
QQtObjectManager::registerObject(this);
#ifdef __EMBEDDED_LINUX__
/*
* 这里只要frameless足够
*/
setWindowFlags(Qt::FramelessWindowHint);
/*
* 控件背景透明,显示设置的图片背景或者下一级背景。
*/
setAttribute(Qt::WA_TranslucentBackground, true);
#endif
setFixedSize(1024, 600);
moveCenter(this);
}
QQTWindow::~QQTWindow()
{
delete ui;
}