En esta página

QHelpEvent Class

La clase QHelpEvent proporciona un evento que se utiliza para solicitar información útil sobre un punto concreto de un widget. Más...

Cabecera: #include <QHelpEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Hereda: QEvent

Funciones Públicas

QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos)
const QPoint &globalPos() const
int globalX() const
int globalY() const
const QPoint &pos() const
int x() const
int y() const

Descripción Detallada

Este evento puede ser interceptado en aplicaciones para proporcionar tooltips o ayuda "¿Qué es esto?" para widgets personalizados. El type() puede ser QEvent::ToolTip o QEvent::WhatsThis.

Ver también QToolTip, QWhatsThis, QStatusTipEvent, y QWhatsThisClickedEvent.

Documentación de las funciones miembro

QHelpEvent::QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos)

Construye un evento de ayuda con la dirección type correspondiente a la posición relativa del widget especificada por pos y la posición global especificada por globalPos.

type debe ser QEvent::ToolTip o QEvent::WhatsThis.

Véase también pos() y globalPos().

const QPoint &QHelpEvent::globalPos() const

Devuelve la posición del cursor del ratón cuando se generó el evento en coordenadas globales.

Véase también pos(), globalX() y globalY().

int QHelpEvent::globalX() const

Igual que globalPos().x().

Véase también x(), globalY() y globalPos().

int QHelpEvent::globalY() const

Igual que globalPos().y().

Véase también y(), globalX() y globalPos().

const QPoint &QHelpEvent::pos() const

Devuelve la posición del cursor del ratón cuando se generó el evento, relativa al widget al que se envía el evento.

Véase también globalPos(), x(), y y().

int QHelpEvent::x() const

Igual que pos().x().

Véase también y(), pos() y globalPos().

int QHelpEvent::y() const

Igual que pos().y().

Véase también x(), pos() y globalPos().

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