QEnterEvent Class
The QEnterEvent class contains parameters that describe an enter event. More...
Header: | #include <QEnterEvent> |
Inherits: | QSinglePointEvent |
Public Functions
QEnterEvent(const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, const QPointingDevice *device = QPointingDevice::primaryPointingDevice()) | |
QPoint | globalPos() const |
int | globalX() const |
int | globalY() const |
QPointF | localPos() const |
QPoint | pos() const |
QPointF | screenPos() const |
QPointF | windowPos() const |
int | x() const |
int | y() const |
Detailed Description
\ingroup
events \inmodule
QtGui
Enter events occur when the mouse cursor enters a window or a widget.
\since
5.0
Member Function Documentation
QEnterEvent::QEnterEvent(const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())
Constructs an enter event object originating from device.
The points localPos, scenePos and globalPos specify the mouse cursor's position relative to the receiving widget or item, window, and screen or desktop, respectively.
QPoint QEnterEvent::globalPos() const
\deprecated
[6.0] Use globalPosition() instead.
Returns the global position of the mouse cursor at the time of the event.
int QEnterEvent::globalX() const
\deprecated
[6.0] Use globalPosition().x() instead.
Returns the global position on the X-axis of the mouse cursor at the time of the event.
int QEnterEvent::globalY() const
\deprecated
[6.0] Use globalPosition().y() instead.
Returns the global position on the Y-axis of the mouse cursor at the time of the event.
QPointF QEnterEvent::localPos() const
\deprecated
[6.0] Use position() instead.
Returns the mouse cursor's position relative to the receiving widget.
QPoint QEnterEvent::pos() const
\deprecated
[6.0] Use position().toPoint() instead.
Returns the position of the mouse cursor relative to the receiving widget.
QPointF QEnterEvent::screenPos() const
\deprecated
[6.0] Use globalPosition() instead.
Returns the position of the mouse cursor relative to the receiving screen.
QPointF QEnterEvent::windowPos() const
\deprecated
[6.0] Use scenePosition() instead.
Returns the position of the mouse cursor relative to the receiving window.
int QEnterEvent::x() const
\deprecated
[6.0] Use position().x() instead.
Returns the x position of the mouse cursor relative to the receiving widget.
int QEnterEvent::y() const
\deprecated
[6.0] Use position().y() instead.
Returns the y position of the mouse cursor relative to the receiving widget.