1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/test/QQtOSDFormTest/mainform.cpp
tianduanrui 4327030a8f remove framelesshelper in testcase.
use bodymover,
use bodyresizer,
2019-08-27 16:03:19 +08:00

27 lines
653 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "mainform.h"
#include "ui_mainform.h"
#include "qqtbodymover.h"
MainForm::MainForm ( QWidget* parent ) :
QQtWidget ( parent ),
ui ( new Ui::MainForm )
{
ui->setupUi ( this );
setAttribute ( Qt::WA_TranslucentBackground, true );
//如果需要鼠标可以移动窗体。
QQtBodyMover* h = new QQtBodyMover ( this );
installEventFilter(h);
//这是使用QQtTitleBar的标准过程请参见mainform.ui。
setWindowIcon ( QIcon ( "logo.ico" ) );
setWindowTitle ( "This is a main form test form." );
//setPixmap ( "rose.png" );
}
MainForm::~MainForm()
{
delete ui;
}