|  | Home · Overviews · Examples |

# QGraphicsSceneMouseEvent Class Reference
[com.trolltech.qt.gui module]

The `QGraphicsSceneMouseEvent` class provides mouse events in the graphics view framework. More...

Inherits `QGraphicsSceneEvent`.

## Detailed Description

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`.