QHelpEvent Class
A classe QHelpEvent fornece um evento utilizado para solicitar informações úteis sobre um ponto específico em um widget. Mais...
| Cabeçalho: | #include <QHelpEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Herdado de: | QEvent |
- Lista de todos os membros, incluindo os herdados
- QHelpEvent faz parte das Classes de Eventos e do Sistema de Ajuda.
Funções 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 |
Funções protegidas
| QHelpEvent(QHelpEvent &&) | |
| QHelpEvent & | operator=(QHelpEvent &&) |
| QHelpEvent & | operator=(const QHelpEvent &other) |
Descrição detalhada
Este evento pode ser interceptado em aplicativos para fornecer dicas de ferramenta ou ajuda do tipo “O que é isso?” para widgets personalizados. O método type() pode ser chamado como QEvent::ToolTip ou QEvent::WhatsThis.
Veja também QToolTip, QWhatsThis, QStatusTipEvent e QWhatsThisClickedEvent.
Documentação das funções-membro
QHelpEvent::QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos)
Cria um evento de ajuda com o type fornecido, correspondente à posição relativa ao widget especificada por pos e à posição global especificada por globalPos.
type Deve ser QEvent::ToolTip ou QEvent::WhatsThis.
Veja também pos() e globalPos().
[protected delete] QHelpEvent::QHelpEvent(QHelpEvent &&)
Cria uma instância de ` QHelpEvent` por meio da função `move`. Essa função foi excluída.
const QPoint &QHelpEvent::globalPos() const
Retorna a posição do cursor do mouse no momento em que o evento foi gerado, em coordenadas globais.
Veja também pos(), globalX() e globalY().
int QHelpEvent::globalX() const
Veja também x(), globalY() e globalPos().
int QHelpEvent::globalY() const
Veja também y(), globalX() e globalPos().
const QPoint &QHelpEvent::pos() const
Retorna a posição do cursor do mouse no momento em que o evento foi gerado, em relação ao widget para o qual o evento foi despachado.
Veja também globalPos(), x() e y().
int QHelpEvent::x() const
É o mesmo que pos().x().
Veja também y(), pos() e globalPos().
int QHelpEvent::y() const
É o mesmo que pos().y().
Veja também x(), pos() e globalPos().
[protected delete] QHelpEvent &QHelpEvent::operator=(QHelpEvent &&)
A função “Move-assigns” atribui other a esta instância QHelpEvent. Esta função foi excluída.
[noexcept protected default] QHelpEvent &QHelpEvent::operator=(const QHelpEvent &other)
Copia e atribui other a esta instância 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.