mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
444a97e6c9
QQtExample工程依赖于QQt工程
35 lines
890 B
C++
35 lines
890 B
C++
#include "mainwindow.h"
|
|
#include "ui_mainwindow.h"
|
|
#include "qqtobjectmanager.h"
|
|
#include "qqt-qt.h"
|
|
#include "qqtcore.h"
|
|
#include "qqtwidgets.h"
|
|
#include "qqtqtiowebpageparser.h"
|
|
|
|
MainWindow::MainWindow(QWidget *parent) :
|
|
QMainWindow(parent),
|
|
ui(new Ui::MainWindow)
|
|
{
|
|
ui->setupUi(this);
|
|
#ifdef __EMBEDDED_LINUX__
|
|
/*
|
|
* 这里只要frameless足够
|
|
*/
|
|
setWindowFlags(Qt::FramelessWindowHint);
|
|
/*
|
|
* 控件背景透明,显示设置的图片背景或者下一级背景。
|
|
*/
|
|
setAttribute(Qt::WA_TranslucentBackground, true);
|
|
#endif
|
|
//setFixedSize(1024, 600);
|
|
//moveCenter(this);
|
|
m_webpageparser = new QQtQtIOWebPageParser ( this );
|
|
connect ( m_webpageparser, SIGNAL ( replyFinished ( QQtWebAccessSession* ) ),
|
|
this, SLOT ( replyFinished ( QQtWebAccessSession* ) ) );
|
|
}
|
|
|
|
MainWindow::~MainWindow()
|
|
{
|
|
delete ui;
|
|
}
|