QGraphicsSceneHoverEvent Class
La classe QGraphicsSceneHoverEvent fornisce eventi di passaggio del mouse nel framework della vista grafica. Per saperne di più...
| Intestazione: | #include <QGraphicsSceneHoverEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| Eredita da: | QGraphicsSceneEvent |
Funzioni pubbliche
| virtual | ~QGraphicsSceneHoverEvent() |
| QPointF | lastPos() const |
| QPointF | lastScenePos() const |
| QPoint | lastScreenPos() const |
| Qt::KeyboardModifiers | modifiers() const |
| QPointF | pos() const |
| QPointF | scenePos() const |
| QPoint | screenPos() const |
Descrizione dettagliata
Quando un oggetto ` QGraphicsView ` riceve un evento ` QHoverEvent `, lo converte in un evento `QGraphicsSceneHoverEvent`. L'evento viene quindi inoltrato all'oggetto ` QGraphicsScene ` associato alla vista.
Vedi anche QGraphicsSceneMouseEvent, QGraphicsSceneContextMenuEvent, QGraphicsSceneWheelEvent e QHoverEvent.
Documentazione sulle funzioni membro
[virtual noexcept] QGraphicsSceneHoverEvent::~QGraphicsSceneHoverEvent()
Elimina l'evento.
QPointF QGraphicsSceneHoverEvent::lastPos() const
Restituisce l'ultima posizione registrata del cursore del mouse nelle coordinate dell'elemento.
Vedi anche lastScenePos(), lastScreenPos() e pos().
QPointF QGraphicsSceneHoverEvent::lastScenePos() const
Restituisce l'ultima posizione registrata, ovvero le coordinate di scena dell'evento precedente (di clic o di passaggio del mouse) ricevuto dalla vista, che ha generato l'evento, espressa in coordinate di scena.
Vedi anche lastPos(), lastScreenPos() e scenePos().
QPoint QGraphicsSceneHoverEvent::lastScreenPos() const
Restituisce l'ultima posizione registrata del cursore del mouse in coordinate dello schermo. L'ultima posizione registrata è quella dell'ultimo evento del mouse o di passaggio del cursore ricevuto dalla vista che ha generato l'evento.
Vedi anche lastPos(), lastScenePos() e screenPos().
Qt::KeyboardModifiers QGraphicsSceneHoverEvent::modifiers() const
Restituisce i modificatori di tastiera attivi nel momento in cui è stato inviato l'evento hover.
QPointF QGraphicsSceneHoverEvent::pos() const
Restituisce la posizione del cursore del mouse nelle coordinate dell'elemento nel momento in cui è stato inviato l'evento hover.
Vedi anche scenePos() e screenPos().
QPointF QGraphicsSceneHoverEvent::scenePos() const
Restituisce la posizione del cursore del mouse nelle coordinate della scena nel momento in cui è stato inviato l'evento hover.
Vedi anche pos() e screenPos().
QPoint QGraphicsSceneHoverEvent::screenPos() const
Restituisce la posizione del cursore del mouse in coordinate dello schermo nel momento in cui è stato inviato l'evento hover.
© 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.