Sur cette page

QEnterEvent Class

La classe QEnterEvent contient des paramètres qui décrivent un événement « Enter ». En savoir plus...

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

Fonctions publiques

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

Fonctions protégées

QEnterEvent(QEnterEvent &&)
QEnterEvent &operator=(QEnterEvent &&)
QEnterEvent &operator=(const QEnterEvent &other)

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())

Crée un objet d'événement « enter » provenant de device.

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

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

Crée par « move » une instance de ` QEnterEvent`. Cette fonction est supprimée.

[protected delete] QEnterEvent &QEnterEvent::operator=(QEnterEvent &&)

La commande « Move » affecte « other » à cette instance « QEnterEvent ». Cette fonction est supprimée.

[noexcept protected default] QEnterEvent &QEnterEvent::operator=(const QEnterEvent &other)

Attribue par copie l'other à cette instance d'QEnterEvent.

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