1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/test/testmouselocker11/mainwindow.cpp
tianduanrui 5d2481792c add a testcase.
test qqtmouselocker, support windows now.
2019-08-24 09:01:56 +08:00

28 lines
770 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 "mainwindow.h"
#include "ui_mainwindow.h"
#include <qqtwidgets.h>
#include <qqtframemouselocker.h>
MainWindow::MainWindow ( QWidget* parent ) :
QMainWindow ( parent ),
ui ( new Ui::MainWindow )
{
ui->setupUi ( this );
//setGeometry ( 100, 200, 800, 600 );
//上边有两个下边这个是不能设置locker的WINAPI的问题。
//QQtFrameMouseLocker* helper = new QQtFrameMouseLocker ( this );
//this->centralWidget()->installEventFilter ( helper );
//FocusIn有bug当从外部接触内部标题栏FocusIN激发鼠标摁住移动窗口只能在一个小范围移动。必须重新摁一次才能整体移动。
//需要解决。
}
MainWindow::~MainWindow()
{
delete ui;
}