Obsolete Members for QHoverEvent

Los siguientes miembros de la clase ` QHoverEvent ` están obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Recomendamos encarecidamente no utilizarlos en código nuevo.

Funciones públicas

(deprecated in 6.3) QHoverEvent(QEvent::Type type, const QPointF &pos, const QPointF &oldPos, Qt::KeyboardModifiers modifiers = Qt::NoModifier, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())
(deprecated in 6.0) QPoint pos() const
(deprecated in 6.0) QPointF posF() const

Documentación de funciones de miembro

[deprecated in 6.3] QHoverEvent::QHoverEvent(QEvent::Type type, const QPointF &pos, const QPointF &oldPos, Qt::KeyboardModifiers modifiers = Qt::NoModifier, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())

Esta función está obsoleta desde la versión 6.3. Recomendamos encarecidamente no utilizarla en código nuevo.

Utiliza en su lugar el otro constructor (se requiere una posición global).

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

El parámetro ` type ` debe ser ` QEvent::HoverEnter`, ` QEvent::HoverLeave` o ` QEvent::HoverMove`.

pos es la posición actual del cursor del ratón en relación con el widget receptor, mientras que oldPos es su posición anterior. modifiers contiene el estado de todos los modificadores del teclado en el momento del evento.

[deprecated in 6.0] QPoint QHoverEvent::pos() const

Esta función está obsoleta desde la versión 6.0. Recomendamos encarecidamente no utilizarla en código nuevo.

Utiliza en su lugar ` position()`.

Devuelve la posición del cursor del ratón, relativa al widget que recibió el evento.

En los eventos ` QEvent::HoverLeave `, esta posición siempre será ` QPoint` (`-1, -1`).

Véase también oldPos().

[deprecated in 6.0] QPointF QHoverEvent::posF() const

Esta función está obsoleta desde la versión 6.0. Recomendamos encarecidamente no utilizarla en código nuevo.

Utiliza en su lugar ` position()`.

Devuelve la posición del cursor del ratón, relativa al widget que ha recibido el evento.

En los eventos ` QEvent::HoverLeave `, esta posición siempre será ` QPointF` (`-1, -1`).

Véase también ` oldPosF()`.

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