QGraphicsSceneHelpEvent Class
La classe QGraphicsSceneHelpEvent genera eventi quando viene richiesto un tooltip. Per saperne di più...
| Intestazione: | #include <QGraphicsSceneHelpEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| Eredita da: | QGraphicsSceneEvent |
Funzioni pubbliche
| virtual | ~QGraphicsSceneHelpEvent() |
| QPointF | scenePos() const |
| QPoint | screenPos() const |
Descrizione dettagliata
Quando un oggetto di tipo ` QGraphicsView ` riceve un evento di tipo ` QEvent ` di tipo ` QEvent::ToolTip`, crea un evento `QGraphicsSceneHelpEvent`, che viene inoltrato alla scena. È possibile impostare un tooltip su un oggetto di tipo ` QGraphicsItem ` utilizzando ` setToolTip()`; per impostazione predefinita, ` QGraphicsScene ` visualizza il tooltip dell'oggetto di tipo ` QGraphicsItem ` con il valore z più alto (ovvero l'elemento più in alto) sotto la posizione del mouse.
QGraphicsView Non inoltra gli eventi quando viene richiesta l'assistenza tramite "What's This" e status tip. Se ne avete bisogno, potete reimplementare QGraphicsView::viewportEvent() e inoltrare alla scena gli eventi QStatusTipEvent e QEvents di tipo QEvent::WhatsThis.
Vedi anche QEvent.
Documentazione delle funzioni membro
[virtual noexcept] QGraphicsSceneHelpEvent::~QGraphicsSceneHelpEvent()
Elimina l'evento.
QPointF QGraphicsSceneHelpEvent::scenePos() const
Restituisce la posizione del cursore del mouse nelle coordinate della scena nel momento in cui è stato inviato l'evento di aiuto.
Vedi anche screenPos().
QPoint QGraphicsSceneHelpEvent::screenPos() const
Restituisce la posizione del cursore del mouse in coordinate dello schermo nel momento in cui è stato inviato l'evento di aiuto.
Vedi anche scenePos().
© 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.