PonyPlayer
cursor.hpp
浏览该文件的文档.
1#ifndef PONYPLAYER_CURSOR_H
2#define PONYPLAYER_CURSOR_H
3
4#include <QtCore>
5#include <QQmlApplicationEngine>
6#include <QQuickView>
7
8class CursorPosProvider : public QObject
9{
10Q_OBJECT
11public:
12 explicit CursorPosProvider(QObject *parent = nullptr) : QObject(parent)
13 {
14 }
15 virtual ~CursorPosProvider() = default;
16
17 Q_INVOKABLE QPointF cursorPos()
18 {
19 return QCursor::pos();
20 }
21};
22
23#endif //PONYPLAYER_CURSOR_H
Definition: cursor.hpp:9
CursorPosProvider(QObject *parent=nullptr)
Definition: cursor.hpp:12
virtual ~CursorPosProvider()=default
Q_INVOKABLE QPointF cursorPos()
Definition: cursor.hpp:17