QHelpEvent Class
La classe QHelpEvent fornisce un evento che viene utilizzato per richiedere informazioni utili su un punto specifico di un widget. Per saperne di più...
| Intestazione: | #include <QHelpEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Eredita da: | QEvent |
- Elenco di tutti i membri, compresi quelli ereditati
- QHelpEvent fa parte delle classi di eventi e del sistema di aiuto.
Funzioni pubbliche
| 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 |
Funzioni protette
| QHelpEvent(QHelpEvent &&) | |
| QHelpEvent & | operator=(QHelpEvent &&) |
| QHelpEvent & | operator=(const QHelpEvent &other) |
Descrizione dettagliata
Questo evento può essere intercettato nelle applicazioni per fornire suggerimenti o l’aiuto “Che cos’è?” per i widget personalizzati. L’ type() può essere sia QEvent::ToolTip che QEvent::WhatsThis.
Vedi anche QToolTip, QWhatsThis, QStatusTipEvent e QWhatsThisClickedEvent.
Documentazione sulle funzioni membro
QHelpEvent::QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos)
Crea un evento di aiuto con l'type specificato, corrispondente alla posizione relativa al widget indicata da pos e alla posizione globale indicata da globalPos.
type Deve essere QEvent::ToolTip o QEvent::WhatsThis.
Vedi anche pos() e globalPos().
[protected delete] QHelpEvent::QHelpEvent(QHelpEvent &&)
Crea un'istanza di ` QHelpEvent`. Questa funzione è stata eliminata.
const QPoint &QHelpEvent::globalPos() const
Restituisce la posizione del cursore del mouse al momento della generazione dell'evento in coordinate globali.
Vedi anche pos(), globalX() e globalY().
int QHelpEvent::globalX() const
Vedi anche x(), globalY() e globalPos().
int QHelpEvent::globalY() const
Vedi anche y(), globalX() e globalPos().
const QPoint &QHelpEvent::pos() const
Restituisce la posizione del cursore del mouse al momento della generazione dell'evento, relativa al widget a cui l'evento è stato inviato.
Vedi anche globalPos(), x() e y().
int QHelpEvent::x() const
Come pos().x().
Vedi anche y(), pos() e globalPos().
int QHelpEvent::y() const
Come pos().y().
Vedi anche x(), pos() e globalPos().
[protected delete] QHelpEvent &QHelpEvent::operator=(QHelpEvent &&)
Assegna " other " a questa istanza di " QHelpEvent ". Questa funzione viene eliminata.
[noexcept protected default] QHelpEvent &QHelpEvent::operator=(const QHelpEvent &other)
Assegna “ other ” a questa istanza di “ 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.