2017-09-05 18:07:05 +08:00
|
|
|
|
#include "qqtwindow.h"
|
|
|
|
|
#include "ui_qqtwindow.h"
|
|
|
|
|
#include "qqtobjectfactory.h"
|
2017-09-17 08:46:57 +08:00
|
|
|
|
#include "qqt-qt.h"
|
2017-09-05 18:07:05 +08:00
|
|
|
|
#include "qqtcore.h"
|
|
|
|
|
#include "qqtwidgets.h"
|
|
|
|
|
|
|
|
|
|
QQTWindow::QQTWindow(QWidget *parent) :
|
|
|
|
|
QStackedWidget(parent),
|
|
|
|
|
ui(new Ui::QQTWindow)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
|
2018-04-22 16:00:14 +08:00
|
|
|
|
QQtObjectManager::registerObject(this);
|
2017-09-05 18:07:05 +08:00
|
|
|
|
|
2017-10-20 19:28:52 +08:00
|
|
|
|
#ifdef __EMBEDDED_LINUX__
|
2017-09-05 18:07:05 +08:00
|
|
|
|
/*
|
|
|
|
|
* 这里只要frameless足够
|
|
|
|
|
*/
|
|
|
|
|
setWindowFlags(Qt::FramelessWindowHint);
|
|
|
|
|
/*
|
|
|
|
|
* 控件背景透明,显示设置的图片背景或者下一级背景。
|
|
|
|
|
*/
|
|
|
|
|
setAttribute(Qt::WA_TranslucentBackground, true);
|
|
|
|
|
#endif
|
|
|
|
|
setFixedSize(1024, 600);
|
|
|
|
|
moveCenter(this);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QQTWindow::~QQTWindow()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
|
|
|
|
}
|