Sur cette page

QEnterEvent Class

La classe QEnterEvent contient des paramètres qui décrivent un événement d'entrée. Plus d'informations...

En-tête : #include <QEnterEvent>
CMake : find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake : QT += gui
Héritages : QSinglePointEvent

Fonctions publiques

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

Description détaillée

Les événements d'entrée se produisent lorsque le curseur de la souris entre dans une fenêtre ou un widget.

Documentation des fonctions membres

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

Construit un objet d'événement d'entrée provenant de device.

Les points localPos, scenePos et globalPos indiquent la position du curseur de la souris par rapport au widget ou à l'élément récepteur, à la fenêtre et à l'écran ou au bureau, respectivement.

© 2026 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.