QGraphicsSceneHelpEvent Class
La clase QGraphicsSceneHelpEvent provee eventos cuando se solicita un tooltip. Más...
| Cabecera: | #include <QGraphicsSceneHelpEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets)target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| Hereda: | QGraphicsSceneEvent |
Funciones Públicas
| virtual | ~QGraphicsSceneHelpEvent() |
| QPointF | scenePos() const |
| QPoint | screenPos() const |
Descripción detallada
Cuando un QGraphicsView recibe un QEvent de tipo QEvent::ToolTip, crea un QGraphicsSceneHelpEvent, que se reenvía a la escena. Puede establecer una información sobre herramientas en un QGraphicsItem con setToolTip(); por defecto QGraphicsScene muestra la información sobre herramientas del QGraphicsItem con el valor z más alto (es decir, el elemento situado más arriba) bajo la posición del ratón.
QGraphicsView no reenvía eventos cuando se solicita ayuda a "What's This" y status tip. Si lo necesitas, puedes reimplementar QGraphicsView::viewportEvent() y reenviar los eventos QStatusTipEvent y QEvents de tipo QEvent::WhatsThis a la escena.
Véase también QEvent.
Documentación de las funciones miembro
[virtual noexcept] QGraphicsSceneHelpEvent::~QGraphicsSceneHelpEvent()
Destruye el evento.
QPointF QGraphicsSceneHelpEvent::scenePos() const
Devuelve la posición del cursor del ratón en coordenadas de la escena en el momento en que se envió el evento de ayuda.
Véase también screenPos().
QPoint QGraphicsSceneHelpEvent::screenPos() const
Devuelve la posición del cursor del ratón en coordenadas de pantalla en el momento en que se envió el evento de ayuda.
Véase también 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.