<class name="QGraphicsSceneEvent" doc="/**
&lt;p&gt;The &lt;a href=&quot;QGraphicsSceneEvent.html#QGraphicsSceneEvent(com.trolltech.qt.core.QEvent.Type)&quot;&gt;&lt;tt&gt;QGraphicsSceneEvent&lt;/tt&gt;&lt;/a&gt; class provides a base class for all graphics view related events.&lt;/p&gt;
&lt;p&gt;When a &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; receives Qt mouse, keyboard, and drag and drop events (&lt;a href=&quot;QMouseEvent.html&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QKeyEvent.html&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt;, QDragEvent, etc.), it translates them into instances of &lt;a href=&quot;QGraphicsSceneEvent.html#QGraphicsSceneEvent(com.trolltech.qt.core.QEvent.Type)&quot;&gt;&lt;tt&gt;QGraphicsSceneEvent&lt;/tt&gt;&lt;/a&gt; subclasses and forwards them to the &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; it displays. The scene then forwards the events to the relevant items.&lt;/p&gt;
&lt;p&gt;For example, when a &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; receives a &lt;a href=&quot;QMouseEvent.html&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt; of type MousePress as a response to a user click, the view sends a &lt;a href=&quot;QGraphicsSceneMouseEvent.html&quot;&gt;&lt;tt&gt;QGraphicsSceneMouseEvent&lt;/tt&gt;&lt;/a&gt; of type &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum&quot;&gt;&lt;tt&gt;GraphicsSceneMousePress&lt;/tt&gt;&lt;/a&gt; to the underlying &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; through its mousePressEvent() function. The default QGraphicsScene::mousePressEvent() implementation determines which item was clicked and forwards the event to QGraphicsItem::mousePressEvent().&lt;/p&gt;
&lt;p&gt;Subclasses such as &lt;a href=&quot;QGraphicsSceneMouseEvent.html&quot;&gt;&lt;tt&gt;QGraphicsSceneMouseEvent&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QGraphicsSceneContextMenuEvent.html&quot;&gt;&lt;tt&gt;QGraphicsSceneContextMenuEvent&lt;/tt&gt;&lt;/a&gt; provide the coordinates from the original &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#QEvent(com.trolltech.qt.core.QEvent.Type)&quot;&gt;&lt;tt&gt;QEvent&lt;/tt&gt;&lt;/a&gt; in screen, scene, and item coordinates (see screenPos(), scenePos(), and pos()). The item coordinates are set by the &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; before it forwards the event to the event to a &lt;a href=&quot;QGraphicsItem.html&quot;&gt;&lt;tt&gt;QGraphicsItem&lt;/tt&gt;&lt;/a&gt;. The mouse events also add the possibility to retrieve the coordinates from the last event received by the view (see lastScreenPos(), lastScenePos(), and lastPos()).&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#QEvent(com.trolltech.qt.core.QEvent.Type)&quot;&gt;&lt;tt&gt;QEvent&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QGraphicsSceneEvent(com.trolltech.qt.core.QEvent.Type type)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QWidget widget()" doc="/**
&lt;p&gt;Returns the widget where the event originated, or 0 if the event originates from another application.&lt;/p&gt;
 */"/>
</class>
