En esta página

QEnterEvent Class

La clase QEnterEvent contiene parámetros que describen un evento de entrada. Más información...

Cabecera: #include <QEnterEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Heredan: QSinglePointEvent

Funciones públicas

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

Funciones protegidas

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

Descripción detallada

Los eventos de entrada se producen cuando el cursor del ratón entra en una ventana o en un control.

Documentación de las funciones de miembro

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

Crea un objeto de evento «enter» procedente de device.

Los puntos localPos, scenePos y globalPos especifican la posición del cursor del ratón en relación con el widget o elemento receptor, la ventana y la pantalla o el escritorio, respectivamente.

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

Crea una instancia de ` QEnterEvent`. Esta función se ha eliminado.

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

Asigna mediante «move» other a esta instancia de QEnterEvent. Esta función se elimina.

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

Asigna por copia other a esta instancia de 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.