23 , m_mouseEvent(mouseEvent)
32 return static_cast<int>(m_mouseEvent->button());
40 return static_cast<int>(m_mouseEvent->buttons());
46 return QPoint(-1, -1);
48 return m_mouseEvent->globalPosition().toPoint();
56 return m_mouseEvent->globalPosition().toPoint().x();
64 return m_mouseEvent->globalPosition().toPoint().y();
70 return QPointF(-1, -1);
72 return m_mouseEvent->position();
78 return QPoint(-1, -1);
80 return m_mouseEvent->position().toPoint();
86 return QPointF(-1, -1);
88 return m_mouseEvent->globalPosition();
96 return static_cast<int>(m_mouseEvent->source());
102 return QPointF(-1, -1);
104 return m_mouseEvent->scenePosition();
112 return m_mouseEvent->position().toPoint().x();
120 return m_mouseEvent->position().toPoint().y();
125 m_mouseEvent =
nullptr;
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