1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

50 lines
1.2 KiB
C++
Raw Normal View History

2017-09-05 18:07:05 +08:00
#include "qqtwindow.h"
#include "ui_qqtwindow.h"
#include "qqtobjectfactory.h"
2017-10-22 12:21:19 +08:00
#include "qqt-qt.h"
2017-09-05 18:07:05 +08:00
#include "qqtcore.h"
#include "qqtwidgets.h"
#include "qqtanimation.h"
#include "qqtobjectfactory.h"
#include "animationmanager.h"
2017-10-22 12:21:19 +08:00
QQTWindow::QQTWindow(QWidget* parent) :
2017-09-05 18:07:05 +08:00
QStackedWidget(parent),
ui(new Ui::QQTWindow)
{
ui->setupUi(this);
QQTObjectFactory::registerObject(this);
#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);
QQTObjectFactory::registerObject(ui->pushButton);
QQTObjectFactory::registerObject(ui->pushButton_2);
QQTObjectFactory::registerObject(ui->pushButton_3);
QQTObjectFactory::registerObject(ui->pushButton_4);
QQTObjectFactory::registerObject(ui->pushButton_5);
QQTObjectFactory::registerObject(ui->pushButton_6);
/**
* @brief QQTAnimationManager::Instance
*
*/
AnimationManager::Instance(this);
}
QQTWindow::~QQTWindow()
{
delete ui;
}