2017-10-12 16:28:07 +08:00
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
#include "ui_mainwindow.h"
|
|
|
|
|
#include "qqtobjectfactory.h"
|
|
|
|
|
#include "qqt-qt.h"
|
|
|
|
|
#include "qqtcore.h"
|
|
|
|
|
#include "qqtwidgets.h"
|
|
|
|
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent) :
|
|
|
|
|
QMainWindow(parent),
|
|
|
|
|
ui(new Ui::MainWindow)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
2017-10-20 19:28:52 +08:00
|
|
|
|
#ifdef __EMBEDDED_LINUX__
|
2017-10-12 16:28:07 +08:00
|
|
|
|
/*
|
|
|
|
|
* 这里只要frameless足够
|
|
|
|
|
*/
|
|
|
|
|
setWindowFlags(Qt::FramelessWindowHint);
|
|
|
|
|
/*
|
|
|
|
|
* 控件背景透明,显示设置的图片背景或者下一级背景。
|
|
|
|
|
*/
|
|
|
|
|
setAttribute(Qt::WA_TranslucentBackground, true);
|
|
|
|
|
#endif
|
|
|
|
|
//setFixedSize(1024, 600);
|
|
|
|
|
//moveCenter(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
|
|
|
|
}
|