2019-08-25 11:14:05 +08:00
|
|
|
#include <mainwidget.h>
|
|
|
|
|
2019-08-25 16:28:08 +08:00
|
|
|
#include <qqtbodyresizer.h>
|
2019-08-25 11:14:05 +08:00
|
|
|
#include <qqtbodymover.h>
|
|
|
|
|
|
|
|
MainWidget::MainWidget ( QWidget* parent ) : QWidget ( parent )
|
|
|
|
{
|
|
|
|
//用户设置 - UI中
|
2019-08-25 16:28:08 +08:00
|
|
|
setMouseTracking ( true );//必要
|
|
|
|
|
|
|
|
setWindowFlags ( windowFlags() | ( Qt::FramelessWindowHint ) );
|
|
|
|
|
|
|
|
//顺便测试一下bodyMover
|
|
|
|
QQtBodyMover* helper2 = new QQtBodyMover ( this );
|
|
|
|
this->installEventFilter ( helper2 );
|
|
|
|
|
|
|
|
QQtBodyResizer* helper = new QQtBodyResizer ( this );
|
2019-08-25 11:14:05 +08:00
|
|
|
this->installEventFilter ( helper );
|
2019-08-25 16:28:08 +08:00
|
|
|
|
2019-08-25 11:14:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
MainWidget::~MainWidget() {}
|