QGraphicsSceneHoverEvent 类

QGraphicsSceneHoverEvent class provides hover events in the graphics view framework. 更多...

头: #include <QGraphicsSceneHoverEvent>
qmake: QT += widgets
Since: Qt 4.2
继承: QGraphicsSceneEvent

公共函数

~QGraphicsSceneHoverEvent ()
QPointF lastPos () const
QPointF lastScenePos () const
QPoint lastScreenPos () const
Qt::KeyboardModifiers modifiers () const
QPointF pos () const
QPointF scenePos () const
QPoint screenPos () const

额外继承成员

详细描述

QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.

QGraphicsView 接收 QHoverEvent event, it translates it into QGraphicsSceneHoverEvent . The event is then forwarded to the QGraphicsScene 关联视图。

另请参阅 QGraphicsSceneMouseEvent , QGraphicsSceneContextMenuEvent , QGraphicsSceneWheelEvent ,和 QHoverEvent .

成员函数文档编制

QGraphicsSceneHoverEvent:: ~QGraphicsSceneHoverEvent ()

销毁事件。

QPointF QGraphicsSceneHoverEvent:: lastPos () const

Returns the last recorded mouse cursor position in item coordinates.

该函数在 Qt 4.4 引入。

另请参阅 lastScenePos (), lastScreenPos (),和 pos ().

QPointF QGraphicsSceneHoverEvent:: lastScenePos () const

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.

该函数在 Qt 4.4 引入。

另请参阅 lastPos (), lastScreenPos (),和 scenePos ().

QPoint QGraphicsSceneHoverEvent:: lastScreenPos () const

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.

该函数在 Qt 4.4 引入。

另请参阅 lastPos (), lastScenePos (),和 screenPos ().

Qt::KeyboardModifiers QGraphicsSceneHoverEvent:: modifiers () const

Returns the keyboard modifiers at the moment the hover event was sent.

该函数在 Qt 4.4 引入。

QPointF QGraphicsSceneHoverEvent:: pos () const

Returns the position of the mouse cursor in item coordinates at the moment the hover event was sent.

另请参阅 scenePos () 和 screenPos ().

QPointF QGraphicsSceneHoverEvent:: scenePos () const

Returns the position of the mouse cursor in scene coordinates at the moment the hover event was sent.

另请参阅 pos () 和 screenPos ().

QPoint QGraphicsSceneHoverEvent:: screenPos () const

Returns the position of the mouse cursor in screen coordinates at the moment the hover event was sent.

另请参阅 pos () 和 scenePos ().