QEnterEvent Class▲
-
Header: QEnterEvent
-
Since: Qt 5.0
-
qmake: QT += gui
-
Inherits: QEvent
-
Group: QEnterEvent is part of events
Detailed Description▲
Enter events occur when the mouse cursor enters a window or a widget.
Member Function Documentation▲
QEnterEvent::QEnterEvent(const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos)▲
Constructs an enter event object.
The points localPos, windowPos and screenPos specify the mouse cursor's position relative to the receiving widget or item, window, and screen, respectively.
QPoint QEnterEvent::globalPos() const▲
Returns the global position of the mouse cursor at the time of the event.
int QEnterEvent::globalX() const▲
Returns the global position on the X-axis of the mouse cursor at the time of the event.
int QEnterEvent::globalY() const▲
Returns the global position on the Y-axis of the mouse cursor at the time of the event.
const QPointF &QEnterEvent::localPos() const▲
Returns the mouse cursor's position relative to the receiving widget.
QPoint QEnterEvent::pos() const▲
Returns the position of the mouse cursor relative to the receiving widget.
const QPointF &QEnterEvent::screenPos() const▲
Returns the position of the mouse cursor relative to the receiving screen.
const QPointF &QEnterEvent::windowPos() const▲
Returns the position of the mouse cursor relative to the receiving window.
int QEnterEvent::x() const▲
Returns the x position of the mouse cursor relative to the receiving widget.
int QEnterEvent::y() const▲
Returns the y position of the mouse cursor relative to the receiving widget.