The QEnterEvent class contains parameters that describe an enter event. More...
Header: | #include <QEnterEvent> |
qmake: | QT += gui |
Since: | Qt 5.0 |
Inherits: | QEvent |
This class was introduced in Qt 5.0.
QEnterEvent(const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos) | |
QPoint | globalPos() const |
int | globalX() const |
int | globalY() const |
const QPointF & | localPos() const |
QPoint | pos() const |
const QPointF & | screenPos() const |
const QPointF & | windowPos() const |
int | x() const |
int | y() const |
Enter events occur when the mouse cursor enters a window or a widget.
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.
Returns the global position of the mouse cursor at the time of the event.
Returns the global position on the X-axis of the mouse cursor at the time of the event.
Returns the global position on the Y-axis of the mouse cursor at the time of the event.
Returns the mouse cursor's position relative to the receiving widget.
Returns the position of the mouse cursor relative to the receiving widget.
Returns the position of the mouse cursor relative to the receiving screen.
Returns the position of the mouse cursor relative to the receiving window.
Returns the x position of the mouse cursor relative to the receiving widget.
Returns the y position of the mouse cursor relative to the receiving widget.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qenterevent.html