<class name="QGraphicsSceneEvent" doc="/** <p>The <a href="QGraphicsSceneEvent.html#QGraphicsSceneEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneEvent</tt></a> class provides a base class for all graphics view related events.</p> <p>When a <a href="QGraphicsView.html"><tt>QGraphicsView</tt></a> receives Qt mouse, keyboard, and drag and drop events (<a href="QMouseEvent.html"><tt>QMouseEvent</tt></a>, <a href="QKeyEvent.html"><tt>QKeyEvent</tt></a>, QDragEvent, etc.), it translates them into instances of <a href="QGraphicsSceneEvent.html#QGraphicsSceneEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneEvent</tt></a> subclasses and forwards them to the <a href="QGraphicsScene.html"><tt>QGraphicsScene</tt></a> it displays. The scene then forwards the events to the relevant items.</p> <p>For example, when a <a href="QGraphicsView.html"><tt>QGraphicsView</tt></a> receives a <a href="QMouseEvent.html"><tt>QMouseEvent</tt></a> of type MousePress as a response to a user click, the view sends a <a href="QGraphicsSceneMouseEvent.html"><tt>QGraphicsSceneMouseEvent</tt></a> of type <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>GraphicsSceneMousePress</tt></a> to the underlying <a href="QGraphicsScene.html"><tt>QGraphicsScene</tt></a> through its mousePressEvent() function. The default QGraphicsScene::mousePressEvent() implementation determines which item was clicked and forwards the event to QGraphicsItem::mousePressEvent().</p> <p>Subclasses such as <a href="QGraphicsSceneMouseEvent.html"><tt>QGraphicsSceneMouseEvent</tt></a> and <a href="QGraphicsSceneContextMenuEvent.html"><tt>QGraphicsSceneContextMenuEvent</tt></a> provide the coordinates from the original <a href="%2E%2E/core/%2E%2E/core/QEvent.html#QEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QEvent</tt></a> in screen, scene, and item coordinates (see screenPos(), scenePos(), and pos()). The item coordinates are set by the <a href="QGraphicsScene.html"><tt>QGraphicsScene</tt></a> before it forwards the event to the event to a <a href="QGraphicsItem.html"><tt>QGraphicsItem</tt></a>. The mouse events also add the possibility to retrieve the coordinates from the last event received by the view (see lastScreenPos(), lastScenePos(), and lastPos()).</p> @see <a href="%2E%2E/core/%2E%2E/core/QEvent.html#QEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QEvent</tt></a> */"> <method name="public QGraphicsSceneEvent(com.trolltech.qt.core.QEvent.Type type)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public final com.trolltech.qt.gui.QWidget widget()" doc="/** <p>Returns the widget where the event originated, or 0 if the event originates from another application.</p> */"/> </class>