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...
| Encabezado: | #include <QHelpEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Heredado de: | QEvent |
- Lista de todos los miembros, incluidos los heredados
- QHelpEvent forma parte de las clases de eventos y del sistema de ayuda.
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 |
Funciones protegidas
| QHelpEvent(QHelpEvent &&) | |
| QHelpEvent & | operator=(QHelpEvent &&) |
| QHelpEvent & | operator=(const QHelpEvent &other) |
Descripción detallada
Este evento puede interceptarse en aplicaciones para proporcionar información sobre herramientas o ayuda del tipo «¿Qué es esto?» para controles personalizados. El método type() puede ser QEvent::ToolTip o QEvent::WhatsThis.
Véase también QToolTip, QWhatsThis, QStatusTipEvent y QWhatsThisClickedEvent.
Documentación sobre funciones de miembro
QHelpEvent::QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos)
Crea un evento de ayuda con el type proporcionado, correspondiente a la posición relativa al widget especificada por pos y a la posición global especificada por globalPos.
type Debe ser « QEvent::ToolTip » o « QEvent::WhatsThis ».
Véase también pos() y globalPos().
[protected delete] QHelpEvent::QHelpEvent(QHelpEvent &&)
Crea una instancia de ` QHelpEvent` mediante la construcción «move». Esta función ha sido eliminada.
const QPoint &QHelpEvent::globalPos() const
Devuelve la posición del cursor del ratón en el momento en que se generó el evento, en coordenadas globales.
Véase también pos(), globalX() y globalY().
int QHelpEvent::globalX() const
Véanse también x(), globalY() y globalPos().
int QHelpEvent::globalY() const
Véase también y(), globalX() y globalPos().
const QPoint &QHelpEvent::pos() const
Devuelve la posición del cursor del ratón en el momento en que se generó el evento, en relación con el 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
Es lo mismo que pos().y().
Véase también x(), pos() y globalPos().
[protected delete] QHelpEvent &QHelpEvent::operator=(QHelpEvent &&)
Asigna mediante «move» other a esta instancia de QHelpEvent. Esta función se elimina.
[noexcept protected default] QHelpEvent &QHelpEvent::operator=(const QHelpEvent &other)
Asigna por copia other a esta instancia de QHelpEvent.
© 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.