The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework. 更多...
| 頭: | #include <QGraphicsSceneHoverEvent> |
| qmake: | QT += widgets |
| Since: | Qt 4.2 |
| 繼承: | 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 |
The 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
()
銷毀事件。
Returns the last recorded mouse cursor position in item coordinates.
該函數在 Qt 4.4 引入。
另請參閱 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.
該函數在 Qt 4.4 引入。
另請參閱 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.
該函數在 Qt 4.4 引入。
另請參閱 lastPos (), lastScenePos (),和 screenPos ().
Returns the keyboard modifiers at the moment the hover event was sent.
該函數在 Qt 4.4 引入。
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.