1 Star 2 Fork 0

chen227 / qmlMouseMove

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mylisten.cpp 490 Bytes
一键复制 编辑 原始数据 按行查看 历史
chen227 提交于 2019-02-13 16:31 . fix start flash
#include "mylisten.h"
#include <QDebug>
MyListen::MyListen(QObject *parent) : QObject(parent)
{
timeout();
timer = new QTimer(this);
timer->setInterval(30);
connect(timer, &QTimer::timeout, this, &MyListen::timeout);
timer->start();
}
void MyListen::setmousePoint(QPoint p)
{
if(p != m_mousePoint)
{
m_mousePoint = p;
emit mousePointChanged();
}
}
void MyListen::timeout()
{
GetCursorPos(&p);
setmousePoint(QPoint(p.x,p.y));
}
1
https://gitee.com/chen227/qmlMouseMove.git
git@gitee.com:chen227/qmlMouseMove.git
chen227
qmlMouseMove
qmlMouseMove
master

搜索帮助