1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/test/testbodymover/mainwidget.cpp
2019-09-24 18:16:05 +08:00

17 lines
496 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 <mainwidget.h>
#include <qqtbodymover.h>
MainWidget::MainWidget ( QWidget* parent ) : QWidget ( parent )
{
//用户设置 - UI中
//setMouseTracking ( true );
//这里可以不设置外边还有个mainwindow的边框
//设置了以后,会有一块边缘空白不响应。
setContentsMargins ( 10, 10, 10, 10 );
QQtBodyMover* helper = new QQtBodyMover ( this );
this->installEventFilter ( helper );
}
MainWidget::~MainWidget() {}