mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
23 lines
578 B
C++
23 lines
578 B
C++
|
#include "mainform.h"
|
|||
|
#include "ui_mainform.h"
|
|||
|
#include "qqtframelesshelper.h"
|
|||
|
|
|||
|
MainForm::MainForm ( QWidget* parent ) :
|
|||
|
QWidget ( parent ),
|
|||
|
ui ( new Ui::MainForm )
|
|||
|
{
|
|||
|
ui->setupUi ( this );
|
|||
|
//如果需要鼠标可以移动窗体。
|
|||
|
QQtFramelessHelper* h = new QQtFramelessHelper ( this );
|
|||
|
h->addDragWidget ( this );
|
|||
|
|
|||
|
//这是使用QQtTitleBar的标准过程,请参见mainform.ui。
|
|||
|
setWindowIcon ( QIcon ( "logo.ico" ) );
|
|||
|
setWindowTitle ( "This is a main form test form." );
|
|||
|
}
|
|||
|
|
|||
|
MainForm::~MainForm()
|
|||
|
{
|
|||
|
delete ui;
|
|||
|
}
|