QEnterEvent Class

The QEnterEvent class contains parameters that describe an enter event. More...

Header: #include <QEnterEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Since: Qt 5.0
Inherits: QSinglePointEvent

Public Functions

QEnterEvent(const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())
virtual ~QEnterEvent() override

Reimplemented Public Functions

virtual QEnterEvent *clone() const override

Protected Functions

QEnterEvent(const QEnterEvent &)
QEnterEvent(QEnterEvent &&)

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 &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.

[protected] QEnterEvent::QEnterEvent(const QEnterEvent &)

Copy constructor.

[protected] QEnterEvent::QEnterEvent(QEnterEvent &&)

Move-copy constructor.

[override virtual] QEnterEvent::~QEnterEvent()

Destroys the instance of QEnterEvent. The destructor is virtual.

[override virtual] QEnterEvent *QEnterEvent::clone() const

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.