55 Q_PROPERTY(QPoint
pos READ
pos CONSTANT)
71 Q_PROPERTY(
int x READ
x CONSTANT)
75 Q_PROPERTY(
int y READ
y CONSTANT)
77 explicit QmlMouseEvent(QMouseEvent *mouseEvent =
nullptr, QObject *parent =
nullptr);
94 QMouseEvent *m_mouseEvent =
nullptr;
The class exposing MouseEvent to QML.
QPoint globalPos
global position of mouse cursor at the time of event
QmlMouseEvent(QMouseEvent *mouseEvent=nullptr, QObject *parent=nullptr)
QPointF localPos
local position of mouse cursor at the time of event
int buttons
button state associated with the event
int button
button associated with the event
int x
x position of mouse cursor at the time of event
QPointF windowPos
window position of mouse cursor at the time of event
int globalY
global y position of mouse cursor at the time of event
QPoint pos
position of mouse cursor at the time of event
int source
source of the event
QPointF screenPos
screen position of mouse cursor at the time of event
int globalX
global x position of mouse cursor at the time of event
int y
y position of mouse cursor at the time of event