![]() |
Home · Overviews · Examples | ![]() |
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework. More...
Inherits QGraphicsSceneEvent.
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
When a QGraphicsView receives a QMouseEvent, it translates it to a QGraphicsSceneMouseEvent. The event is then forwarded to the QGraphicsScene associated with the view.
In addition to containing the item, scene, and screen coordinates of the event (as pos, scenePos, and screenPos), mouse events also contain the coordinates of the previous mouse event received by the view. These can be retrieved with lastPos, lastScreenPos, and lastScenePos.
See also QGraphicsSceneContextMenuEvent, QGraphicsSceneHoverEvent, QGraphicsSceneWheelEvent, and QMouseEvent.
Copyright © 2008 Trolltech | Trademarks | Qt Jambi 4.3.4_01 |