QGraphicsSceneHoverEvent 类提供在图形视图框架中的悬停事件。 更多...
头: | #include <QGraphicsSceneHoverEvent> |
CMake: |
find_package(Qt6 COMPONENTS Widgets REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
继承: | QGraphicsSceneEvent |
virtual | ~QGraphicsSceneHoverEvent () |
QPointF | lastPos () const |
QPointF | lastScenePos () const |
QPoint | lastScreenPos () const |
Qt::KeyboardModifiers | modifiers () const |
QPointF | pos () const |
QPointF | scenePos () const |
QPoint | screenPos () const |
当 QGraphicsView 接收 QHoverEvent 事件,它将其翻译成 QGraphicsSceneHoverEvent。然后,事件被转发给 QGraphicsScene 关联视图。
另请参阅 QGraphicsSceneMouseEvent , QGraphicsSceneContextMenuEvent , QGraphicsSceneWheelEvent ,和 QHoverEvent .
[虚拟]
QGraphicsSceneHoverEvent::
~QGraphicsSceneHoverEvent
()
销毁事件。
Returns the last recorded mouse cursor position in item coordinates.
另请参阅 lastScenePos (), lastScreenPos (),和 pos ().
Returns the last recorded, the scene coordinates of the previous mouse or hover event received by the view, that created the event mouse cursor position in scene coordinates.
另请参阅 lastPos (), lastScreenPos (),和 scenePos ().
Returns the last recorded mouse cursor position in screen coordinates. The last recorded position is the position of the previous mouse or hover event received by the view that created the event.
另请参阅 lastPos (), lastScenePos (),和 screenPos ().
Returns the keyboard modifiers at the moment the hover event was sent.
Returns the position of the mouse cursor in item coordinates at the moment the hover event was sent.
另请参阅 scenePos () 和 screenPos ().
Returns the position of the mouse cursor in scene coordinates at the moment the hover event was sent.
Returns the position of the mouse cursor in screen coordinates at the moment the hover event was sent.