Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2047

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QGraphicsScene" doc="/**
&lt;p&gt;The &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; class provides a surface for managing a large number of 2D graphical items.&lt;/p&gt;
&lt;p&gt;The class serves as a container for QGraphicsItems. It is used together with &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; for visualizing graphical items, such as lines, rectangles, text, or even custom items, on a 2D surface. &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; is part of &lt;a href=&quot;%2E%2E/graphicsview.html&quot;&gt;The Graphics View Framework&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; also provides functionality that lets you efficiently determine both the location of items, and for determining what items are visible within an arbitrary area on the scene. With the &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; widget, you can either visualize the whole scene, or zoom in and view only parts of the scene.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsScene scene;
    scene.addText(&amp;quot;Hello, world!&amp;quot;);

    QGraphicsView view(&amp;amp;scene);
    view.show();&lt;/pre&gt;
&lt;p&gt;Note that &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; has no visual appearance of its own; it only manages the items. You need to create a &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; widget to visualize the scene.&lt;/p&gt;
&lt;p&gt;To add items to a scene, you start off by constructing a &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; object. Then, you have two options: either add your existing &lt;a href=&quot;QGraphicsItem.html&quot;&gt;&lt;tt&gt;QGraphicsItem&lt;/tt&gt;&lt;/a&gt; objects by calling &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt;, or you can call one of the convenience functions &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsScene.html#addPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsScene.html#addPolygon(com.trolltech.qt.gui.QPolygonF, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPolygon&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QGraphicsScene.html#addText(java.lang.String, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt;, which all return a pointer to the newly added item. You can then visualize the scene using &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;. When the scene changes, (e.g&amp;#x2e;, when an item moves or is transformed) &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; emits the &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; signal. To remove an item, call &lt;a href=&quot;QGraphicsScene.html#removeItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;removeItem&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; uses an indexing algorithm to manage the location of items efficiently. By default, a BSP (Binary Space Partitioning) tree is used; an algorithm suitable for large scenes where most items remain static (i.e&amp;#x2e;, do not move around). You can choose to disable this index by calling &lt;a href=&quot;QGraphicsScene.html#setItemIndexMethod(com.trolltech.qt.gui.QGraphicsScene.ItemIndexMethod)&quot;&gt;&lt;tt&gt;setItemIndexMethod&lt;/tt&gt;&lt;/a&gt;. For more information about the available indexing algorithms, see the &lt;a href=&quot;QGraphicsScene.html#itemIndexMethod()&quot;&gt;&lt;tt&gt;itemIndexMethod&lt;/tt&gt;&lt;/a&gt; property.&lt;/p&gt;
&lt;p&gt;The scene's bounding rect is set by calling &lt;a href=&quot;QGraphicsScene.html#setSceneRect(com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;setSceneRect&lt;/tt&gt;&lt;/a&gt;. Items can be placed at any position on the scene, and the size of the scene is by default unlimited. The scene rect is used only for internal bookkeeping, maintaining the scene's item index. If the scene rect is unset, &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will use the bounding area of all items, as returned by &lt;a href=&quot;QGraphicsScene.html#itemsBoundingRect()&quot;&gt;&lt;tt&gt;itemsBoundingRect&lt;/tt&gt;&lt;/a&gt;, as the scene rect. However, &lt;a href=&quot;QGraphicsScene.html#itemsBoundingRect()&quot;&gt;&lt;tt&gt;itemsBoundingRect&lt;/tt&gt;&lt;/a&gt; is a relatively time consuming function, as it operates by collecting positional information for every item on the scene. Because of this, you should always set the scene rect when operating on large scenes.&lt;/p&gt;
&lt;p&gt;One of &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;'s greatest strengths is its ability to efficiently determine the location of items. Even with millions of items on the scene, the &lt;a href=&quot;QGraphicsScene.html#items(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt; functions can determine the location of an item within few milliseconds. There are several overloads to &lt;a href=&quot;QGraphicsScene.html#items(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt;: one that finds items at a certain position, one that finds items inside or intersecting with a polygon or a rectangle, and more. The list of returned items is sorted by stacking order, with the topmost item being the first item in the list. For convenience, there is also an &lt;a href=&quot;QGraphicsScene.html#itemAt(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt; function that returns the topmost item at a given position.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; maintains selection information for the scene. To select items, call &lt;a href=&quot;QGraphicsScene.html#setSelectionArea(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;setSelectionArea&lt;/tt&gt;&lt;/a&gt;, and to clear the current selection, call &lt;a href=&quot;QGraphicsScene.html#clearSelection()&quot;&gt;&lt;tt&gt;clearSelection&lt;/tt&gt;&lt;/a&gt;. Call &lt;a href=&quot;QGraphicsScene.html#selectedItems()&quot;&gt;&lt;tt&gt;selectedItems&lt;/tt&gt;&lt;/a&gt; to get the list of all selected items.&lt;/p&gt;
&lt;a name=&quot;event-handling-and-propagation&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Event Handling and Propagation&lt;/h3&gt;
&lt;p&gt;Another responsibility that &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; has, is to propagate events from &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;. To send an event to a scene, you construct an event that inherits &lt;a href=&quot;%2E%2E/core/QEvent.html&quot;&gt;&lt;tt&gt;QEvent&lt;/tt&gt;&lt;/a&gt;, and then send it using, for example, QApplication::sendEvent(). &lt;a href=&quot;QGraphicsScene.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; is responsible for dispatching the event to the individual items. Some common events are handled by convenience event handlers. For example, key press events are handled by &lt;a href=&quot;QGraphicsScene.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt;, and mouse press events are handled by &lt;a href=&quot;QGraphicsScene.html#mousePressEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Key events are delivered to the &lt;i&gt;focus item&lt;/i&gt;. To set the focus item, you can either call &lt;a href=&quot;QGraphicsScene.html#setFocusItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocusItem&lt;/tt&gt;&lt;/a&gt;, passing an item that accepts focus, or the item itself can call QGraphicsItem::setFocus(). Call &lt;a href=&quot;QGraphicsScene.html#focusItem()&quot;&gt;&lt;tt&gt;focusItem&lt;/tt&gt;&lt;/a&gt; to get the current focus item. For compatibility with widgets, the scene also maintains its own focus information. By default, the scene does not have focus, and all key events are discarded. If &lt;a href=&quot;QGraphicsScene.html#setFocus(com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt; is called, or if an item on the scene gains focus, the scene automatically gains focus. If the scene has focus, &lt;a href=&quot;QGraphicsScene.html#hasFocus()&quot;&gt;&lt;tt&gt;hasFocus&lt;/tt&gt;&lt;/a&gt; will return true, and key events will be forwarded to the focus item, if any. If the scene loses focus, (i.e&amp;#x2e;, someone calls &lt;a href=&quot;QGraphicsScene.html#clearFocus()&quot;&gt;&lt;tt&gt;clearFocus&lt;/tt&gt;&lt;/a&gt;,) while an item has focus, the scene will maintain its item focus information, and once the scene regains focus, it will make sure the last focus item regains focus.&lt;/p&gt;
&lt;p&gt;For mouse-over effects, &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; dispatches &lt;i&gt;hover events&lt;/i&gt;. If an item accepts hover events (see QGraphicsItem::acceptsHoverEvents()), it will receive a GraphicsSceneHoverEnter event when the mouse enters its area. As the mouse continues moving inside the item's area, &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will send it GraphicsSceneHoverMove events. When the mouse leaves the item's area, the item will receive a GraphicsSceneHoverLeave event.&lt;/p&gt;
&lt;p&gt;All mouse events are delivered to the current &lt;i&gt;mouse grabber&lt;/i&gt; item. An item becomes the scene's mouse grabber if it accepts mouse events (see QGraphicsItem::acceptedMouseButtons()) and it receives a mouse press. It stays the mouse grabber until it receives a mouse release when no other mouse buttons are pressed. You can call &lt;a href=&quot;QGraphicsScene.html#mouseGrabberItem()&quot;&gt;&lt;tt&gt;mouseGrabberItem&lt;/tt&gt;&lt;/a&gt; to determine what item is currently grabbing the mouse.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItem.html&quot;&gt;&lt;tt&gt;QGraphicsItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void changed(java.util.List region)" doc="/**
&lt;p&gt;This signal is emitted by &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; when control reaches the event loop, if the scene content changes. The &lt;tt&gt;region&lt;/tt&gt; parameter contains a list of scene rectangles that indicate the area that has been changed.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(java.util.List region)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QGraphicsView::update&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void sceneRectChanged(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;This signal is emitted by &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; whenever the scene rect changes. The &lt;tt&gt;rect&lt;/tt&gt; parameter is the new scene rectangle.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QRectF rect)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QGraphicsView::updateSceneRect&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void selectionChanged()" doc="/**
&lt;p&gt;This signal is emitted by &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; whenever the selection changes. You can call &lt;a href=&quot;QGraphicsScene.html#selectedItems()&quot;&gt;&lt;tt&gt;selectedItems&lt;/tt&gt;&lt;/a&gt; to get the new list of selected items.&lt;/p&gt;
&lt;p&gt;The selection changes whenever an item is selected or unselected, a selection area is set, cleared or otherwise changed, if a preselected item is added to the scene, or if a selected item is removed from the scene.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; emits this signal only once for group selection operations. For example, if you set a selection area, select or unselect a &lt;a href=&quot;QGraphicsItemGroup.html&quot;&gt;&lt;tt&gt;QGraphicsItemGroup&lt;/tt&gt;&lt;/a&gt;, or if you add or remove from the scene a parent item that contains several selected items, &lt;a href=&quot;QGraphicsScene.html#selectionChanged()&quot;&gt;&lt;tt&gt;selectionChanged&lt;/tt&gt;&lt;/a&gt; is emitted only once after the operation has completed (instead of once for each item).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QGraphicsScene.html#setSelectionArea(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;setSelectionArea&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsScene.html#selectedItems()&quot;&gt;&lt;tt&gt;selectedItems&lt;/tt&gt;&lt;/a&gt;, &lt;tt&gt;QGraphicsItem::setSelected&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QGraphicsScene(double x, double y, double width, double height, com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; object, using the rectangle specified by (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;), and the given &lt;tt&gt;width&lt;/tt&gt; and &lt;tt&gt;height&lt;/tt&gt; for its scene rectangle. The &lt;tt&gt;parent&lt;/tt&gt; parameter is passed to &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QObject.html#QObject(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QObject&lt;/tt&gt;&lt;/a&gt;'s constructor.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#sceneRect()&quot;&gt;&lt;tt&gt;sceneRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QGraphicsScene(double x, double y, double width, double height)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;width&lt;/tt&gt;, &lt;tt&gt;height&lt;/tt&gt;, 0). */"/>
    <method name="public QGraphicsScene(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; object. The &lt;tt&gt;parent&lt;/tt&gt; parameter is passed to &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QObject.html#QObject(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QObject&lt;/tt&gt;&lt;/a&gt;'s constructor.&lt;/p&gt;
 */"/>
    <method name="public QGraphicsScene()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public QGraphicsScene(com.trolltech.qt.core.QRectF sceneRect, com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; object, using &lt;tt&gt;sceneRect&lt;/tt&gt; for its scene rectangle. The &lt;tt&gt;parent&lt;/tt&gt; parameter is passed to &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QObject.html#QObject(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QObject&lt;/tt&gt;&lt;/a&gt;'s constructor.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#sceneRect()&quot;&gt;&lt;tt&gt;sceneRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QGraphicsScene(com.trolltech.qt.core.QRectF sceneRect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;sceneRect&lt;/tt&gt;, 0). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsEllipseItem addEllipse(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.gui.QPen pen, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Creates and adds an ellipse item to the scene, and returns the item pointer. The geometry of the ellipse is defined by &lt;tt&gt;rect&lt;/tt&gt;, and it's pen and brush are initialized to &lt;tt&gt;pen&lt;/tt&gt; and &lt;tt&gt;brush&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0).&lt;/p&gt;
&lt;p&gt;If the item is visible (i.e&amp;#x2e;, QGraphicsItem::isVisible() returns true), &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; once control goes back to the event loop.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addText(java.lang.String, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsEllipseItem addEllipse(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.gui.QPen pen)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, &lt;tt&gt;pen&lt;/tt&gt;, QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsEllipseItem addEllipse(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, QPen(), QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsEllipseItem addEllipse(double x, double y, double w, double h, com.trolltech.qt.gui.QPen pen, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;This convenience function is equivalent to calling &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;), &lt;tt&gt;pen&lt;/tt&gt;, &lt;tt&gt;brush&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsEllipseItem addEllipse(double x, double y, double w, double h, com.trolltech.qt.gui.QPen pen)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;pen&lt;/tt&gt;, QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsEllipseItem addEllipse(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, QPen(), QBrush()). */"/>
    <method name="public final void addItem(com.trolltech.qt.gui.QGraphicsItemInterface item)" doc="/**
&lt;p&gt;Adds or moves the item &lt;tt&gt;item&lt;/tt&gt; and all its childen to the scene.&lt;/p&gt;
&lt;p&gt;If the item is visible (i.e&amp;#x2e;, QGraphicsItem::isVisible() returns true), &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; once control goes back to the event loop.&lt;/p&gt;
&lt;p&gt;If the item is already in a different scene, it will first be removed from its old scene, and then added to this scene as a top-level.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#removeItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;removeItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addText(java.lang.String, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsLineItem addLine(com.trolltech.qt.gui.QLineF line, com.trolltech.qt.gui.QPen pen)" doc="/**
&lt;p&gt;Creates and adds a line item to the scene, and returns the item pointer. The geometry of the line is defined by &lt;tt&gt;line&lt;/tt&gt;, and it's pen is initialized to &lt;tt&gt;pen&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0).&lt;/p&gt;
&lt;p&gt;If the item is visible (i.e&amp;#x2e;, QGraphicsItem::isVisible() returns true), &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; once control goes back to the event loop.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addText(java.lang.String, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsLineItem addLine(com.trolltech.qt.gui.QLineF line)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;line&lt;/tt&gt;, QPen()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsLineItem addLine(double x1, double y1, double x2, double y2, com.trolltech.qt.gui.QPen pen)" doc="/**
&lt;p&gt;This convenience function is equivalent to calling &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;QLineF.html&quot;&gt;&lt;tt&gt;QLineF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x1&lt;/tt&gt;, &lt;tt&gt;y1&lt;/tt&gt;, &lt;tt&gt;x2&lt;/tt&gt;, &lt;tt&gt;y2&lt;/tt&gt;), &lt;tt&gt;pen&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsLineItem addLine(double x1, double y1, double x2, double y2)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x1&lt;/tt&gt;, &lt;tt&gt;y1&lt;/tt&gt;, &lt;tt&gt;x2&lt;/tt&gt;, &lt;tt&gt;y2&lt;/tt&gt;, QPen()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsPathItem addPath(com.trolltech.qt.gui.QPainterPath path, com.trolltech.qt.gui.QPen pen, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Creates and adds a path item to the scene, and returns the item pointer. The geometry of the path is defined by &lt;tt&gt;path&lt;/tt&gt;, and it's pen and brush are initialized to &lt;tt&gt;pen&lt;/tt&gt; and &lt;tt&gt;brush&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0).&lt;/p&gt;
&lt;p&gt;If the item is visible (i.e&amp;#x2e;, QGraphicsItem::isVisible() returns true), &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; once control goes back to the event loop.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addText(java.lang.String, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsPathItem addPath(com.trolltech.qt.gui.QPainterPath path, com.trolltech.qt.gui.QPen pen)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;path&lt;/tt&gt;, &lt;tt&gt;pen&lt;/tt&gt;, QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsPathItem addPath(com.trolltech.qt.gui.QPainterPath path)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;path&lt;/tt&gt;, QPen(), QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsPixmapItem addPixmap(com.trolltech.qt.gui.QPixmap pixmap)" doc="/**
&lt;p&gt;Creates and adds a pixmap item to the scene, and returns the item pointer. The pixmap is defined by &lt;tt&gt;pixmap&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0).&lt;/p&gt;
&lt;p&gt;If the item is visible (i.e&amp;#x2e;, QGraphicsItem::isVisible() returns true), &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; once control goes back to the event loop.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addText(java.lang.String, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsPolygonItem addPolygon(com.trolltech.qt.gui.QPolygonF polygon, com.trolltech.qt.gui.QPen pen, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Creates and adds a polygon item to the scene, and returns the item pointer. The polygon is defined by &lt;tt&gt;polygon&lt;/tt&gt;, and it's pen and brush are initialized to &lt;tt&gt;pen&lt;/tt&gt; and &lt;tt&gt;brush&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0).&lt;/p&gt;
&lt;p&gt;If the item is visible (i.e&amp;#x2e;, QGraphicsItem::isVisible() returns true), &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; once control goes back to the event loop.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addText(java.lang.String, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsPolygonItem addPolygon(com.trolltech.qt.gui.QPolygonF polygon, com.trolltech.qt.gui.QPen pen)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addPolygon(com.trolltech.qt.gui.QPolygonF, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPolygon&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;polygon&lt;/tt&gt;, &lt;tt&gt;pen&lt;/tt&gt;, QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsPolygonItem addPolygon(com.trolltech.qt.gui.QPolygonF polygon)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addPolygon(com.trolltech.qt.gui.QPolygonF, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addPolygon&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;polygon&lt;/tt&gt;, QPen(), QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsRectItem addRect(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.gui.QPen pen, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Creates and adds a rectangle item to the scene, and returns the item pointer. The geometry of the rectangle is defined by &lt;tt&gt;rect&lt;/tt&gt;, and it's pen and brush are initialized to &lt;tt&gt;pen&lt;/tt&gt; and &lt;tt&gt;brush&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0).&lt;/p&gt;
&lt;p&gt;If the item is visible (i.e&amp;#x2e;, QGraphicsItem::isVisible() returns true), &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; once control goes back to the event loop.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addText(java.lang.String, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsRectItem addRect(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.gui.QPen pen)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, &lt;tt&gt;pen&lt;/tt&gt;, QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsRectItem addRect(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, QPen(), QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsRectItem addRect(double x, double y, double w, double h, com.trolltech.qt.gui.QPen pen, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;This convenience function is equivalent to calling &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;), &lt;tt&gt;pen&lt;/tt&gt;, &lt;tt&gt;brush&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsRectItem addRect(double x, double y, double w, double h, com.trolltech.qt.gui.QPen pen)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;pen&lt;/tt&gt;, QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsRectItem addRect(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, QPen(), QBrush()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsSimpleTextItem addSimpleText(java.lang.String text, com.trolltech.qt.gui.QFont font)" doc="/**
&lt;p&gt;Creates and adds a &lt;a href=&quot;QGraphicsSimpleTextItem.html&quot;&gt;&lt;tt&gt;QGraphicsSimpleTextItem&lt;/tt&gt;&lt;/a&gt; to the scene, and returns the item pointer. The text string is initialized to &lt;tt&gt;text&lt;/tt&gt;, and it's font is initialized to &lt;tt&gt;font&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The item's position is initialized to (0, 0).&lt;/p&gt;
&lt;p&gt;If the item is visible (i.e&amp;#x2e;, QGraphicsItem::isVisible() returns true), &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; once control goes back to the event loop.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsSimpleTextItem addSimpleText(java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addSimpleText(java.lang.String, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;addSimpleText&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;text&lt;/tt&gt;, QFont()). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsTextItem addText(java.lang.String text, com.trolltech.qt.gui.QFont font)" doc="/**
&lt;p&gt;Creates and adds a text item to the scene, and returns the item pointer. The text string is initialized to &lt;tt&gt;text&lt;/tt&gt;, and it's font is initialized to &lt;tt&gt;font&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The item's position is initialized to (0, 0).&lt;/p&gt;
&lt;p&gt;If the item is visible (i.e&amp;#x2e;, QGraphicsItem::isVisible() returns true), &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; once control goes back to the event loop.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#addEllipse(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addLine(double, double, double, double, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;addLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addRect(double, double, double, double, com.trolltech.qt.gui.QPen, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsTextItem addText(java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#addText(java.lang.String, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;text&lt;/tt&gt;, QFont()). */"/>
    <method name="public final void advance()" doc="/**
&lt;p&gt;This slot &lt;i&gt;advances&lt;/i&gt; the scene by one step, by calling QGraphicsItem::advance() for all items on the scene. This is done in two phases: in the first phase, all items are notified that the scene is about to change, and in the second phase all items are notified that they can move. In the first phase, QGraphicsItem::advance() is called passing a value of 0 as an argument, and 1 is passed in the second phase.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::advance&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html&quot;&gt;&lt;tt&gt;QGraphicsItemAnimation&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/QTimeLine.html&quot;&gt;&lt;tt&gt;QTimeLine&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush backgroundBrush()" doc="/**
&lt;p&gt;Returns the background brush of the scene..&lt;/p&gt;
&lt;p&gt;Set this property to changes the scene's background to a different color, gradient or texture. The default background brush is Qt::NoBrush. The background is drawn before (behind) the items.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsScene scene;
    QGraphicsView view(&amp;amp;scene);
    view.show();

&lt;span class=&quot;comment&quot;&gt;    // a blue background&lt;/span&gt;
    scene.setBackgroundBrush(Qt::blue);

&lt;span class=&quot;comment&quot;&gt;    // a gradient background&lt;/span&gt;
    QRadialGradient gradient(0, 0, 10);
    gradient.setSpread(QGradient::RepeatSpread);
    scene.setBackgroundBrush(gradient);&lt;/pre&gt;
&lt;p&gt;QGraphicsScene::render() calls &lt;a href=&quot;QGraphicsScene.html#drawBackground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawBackground&lt;/tt&gt;&lt;/a&gt; to draw the scene background. For more detailed control over how the background is drawn, you can reimplement &lt;a href=&quot;QGraphicsScene.html#drawBackground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawBackground&lt;/tt&gt;&lt;/a&gt; in a subclass of &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setBackgroundBrush(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBackgroundBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int bspTreeDepth()" doc="/**
&lt;p&gt;Returns the depth of &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;'s BSP index tree.&lt;/p&gt;
&lt;p&gt;This property has no effect when &lt;a href=&quot;QGraphicsScene.html#ItemIndexMethod-enum&quot;&gt;&lt;tt&gt;NoIndex&lt;/tt&gt;&lt;/a&gt; is used.&lt;/p&gt;
&lt;p&gt;This value determines the depth of &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;'s BSP tree. The depth directly affects &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;'s performance and memory usage; the latter growing exponentially with the depth of the tree. With an optimal tree depth, &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; can instantly determine the locality of items, even for scenes with thousands or millions of items. This also greatly improves rendering performance.&lt;/p&gt;
&lt;p&gt;By default, the value is 0, in which case Qt will guess a reasonable default depth based on the size, location and number of items in the scene. If these parameters change frequently, however, you may experience slowdowns as &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; retunes the depth internally. You can avoid potential slowdowns by fixating the tree depth through setting this property.&lt;/p&gt;
&lt;p&gt;The depth of the tree and the size of the scene rectangle decide the granularity of the scene's partitioning. The size of each scene segment is determined by the following algorithm:&lt;/p&gt;
&lt;pre&gt;    QSizeF segmentSize = sceneRect().size() / pow(2, depth - 1);&lt;/pre&gt;
&lt;p&gt;The BSP tree has an optimal size when each segment contains between 0 and 10 items.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setBspTreeDepth(int)&quot;&gt;&lt;tt&gt;setBspTreeDepth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#itemIndexMethod()&quot;&gt;&lt;tt&gt;itemIndexMethod&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clearFocus()" doc="/**
&lt;p&gt;Clears focus from the scene. If any item has focus when this function is called, it will lose focus, and regain focus again once the scene regains focus.&lt;/p&gt;
&lt;p&gt;A scene that does not have focus ignores key events.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#hasFocus()&quot;&gt;&lt;tt&gt;hasFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#setFocus(com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#setFocusItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocusItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clearSelection()" doc="/**
&lt;p&gt;Clears the current selection.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setSelectionArea(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;setSelectionArea&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#selectedItems()&quot;&gt;&lt;tt&gt;selectedItems&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; collidingItems(com.trolltech.qt.gui.QGraphicsItemInterface item, com.trolltech.qt.core.Qt.ItemSelectionMode mode)" doc="/**
&lt;p&gt;Returns a list of all items that collide with &lt;tt&gt;item&lt;/tt&gt;. Collisions are determined by calling QGraphicsItem::collidesWithItem(); the collision detection is determined by &lt;tt&gt;mode&lt;/tt&gt;. By default, all items whose shape intersects &lt;tt&gt;item&lt;/tt&gt; or is contained inside &lt;tt&gt;item&lt;/tt&gt;'s shape are returned.&lt;/p&gt;
&lt;p&gt;The items are returned in descending Z order (i.e&amp;#x2e;, the first item in the list is the top-most item, and the last item is the bottom-most item).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#items(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#itemAt(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsItem::collidesWithItem&lt;/tt&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; collidingItems(com.trolltech.qt.gui.QGraphicsItemInterface item)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#collidingItems(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;collidingItems&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;item&lt;/tt&gt;, Qt::IntersectsItemShape). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsItemGroup createItemGroup(java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items)" doc="/**
&lt;p&gt;Groups all items in &lt;tt&gt;items&lt;/tt&gt; into a new &lt;a href=&quot;QGraphicsItemGroup.html&quot;&gt;&lt;tt&gt;QGraphicsItemGroup&lt;/tt&gt;&lt;/a&gt;, and returns a pointer to the group. The group is created with the common ancestor of &lt;tt&gt;items&lt;/tt&gt; as its parent, and with position (0, 0). The items are all reparented to the group, and their positions and transformations are mapped to the group. If &lt;tt&gt;items&lt;/tt&gt; is empty, this function will return an empty top-level &lt;a href=&quot;QGraphicsItemGroup.html&quot;&gt;&lt;tt&gt;QGraphicsItemGroup&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; has ownership of the group item; you do not need to delete it. To dismantle (ungroup) a group, call &lt;a href=&quot;QGraphicsScene.html#destroyItemGroup(com.trolltech.qt.gui.QGraphicsItemGroup)&quot;&gt;&lt;tt&gt;destroyItemGroup&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#destroyItemGroup(com.trolltech.qt.gui.QGraphicsItemGroup)&quot;&gt;&lt;tt&gt;destroyItemGroup&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsItemGroup::addToGroup&lt;/tt&gt; */"/>
    <method name="public final void destroyItemGroup(com.trolltech.qt.gui.QGraphicsItemGroup group)" doc="/**
&lt;p&gt;Reparents all items in &lt;tt&gt;group&lt;/tt&gt; to &lt;tt&gt;group&lt;/tt&gt;'s parent item, then removes &lt;tt&gt;group&lt;/tt&gt; from the scene, and finally deletes it. The items' positions and transformations are mapped from the group to the group's parent.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#createItemGroup(java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt;)&quot;&gt;&lt;tt&gt;createItemGroup&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsItemGroup::removeFromGroup&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsItemInterface focusItem()" doc="/**
&lt;p&gt;Returns the scene's current focus item, or 0 if no item currently has focus.&lt;/p&gt;
&lt;p&gt;The focus item receives keyboard input when the scene receives a key event.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setFocusItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocusItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsItem::hasFocus&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush foregroundBrush()" doc="/**
&lt;p&gt;Returns the foreground brush of the scene..&lt;/p&gt;
&lt;p&gt;Change this property to set the scene's foreground to a different color, gradient or texture.&lt;/p&gt;
&lt;p&gt;The foreground is drawn after (on top of) the items. The default foreground brush is Qt::NoBrush ( i.e&amp;#x2e; the foreground is not drawn).&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsScene scene;
    QGraphicsView view(&amp;amp;scene);
    view.show();

&lt;span class=&quot;comment&quot;&gt;    // a white semi-transparent foreground&lt;/span&gt;
    scene.setForegroundBrush(QColor(255, 255, 255, 127));

&lt;span class=&quot;comment&quot;&gt;    // a grid foreground&lt;/span&gt;
    scene.setForegroundBrush(QBrush(Qt::lightGray, Qt::CrossPattern));&lt;/pre&gt;
&lt;p&gt;QGraphicsScene::render() calls &lt;a href=&quot;QGraphicsScene.html#drawForeground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawForeground&lt;/tt&gt;&lt;/a&gt; to draw the scene foreground. For more detailed control over how the foreground is drawn, you can reimplement the &lt;a href=&quot;QGraphicsScene.html#drawForeground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawForeground&lt;/tt&gt;&lt;/a&gt; function in a &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setForegroundBrush(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setForegroundBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasFocus()" doc="/**
&lt;p&gt;Returns true if the scene has focus; otherwise returns false. If the scene has focus, it will will forward key events from &lt;a href=&quot;QKeyEvent.html&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt; to any item that has focus.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setFocus(com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#setFocusItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocusItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double height()" doc="/**
&lt;p&gt;This convenience function is equivalent to calling &lt;tt&gt;sceneRect().height()&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void invalidate(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.gui.QGraphicsScene.SceneLayers layers)" doc="/**
&lt;p&gt;Invalidates and schedules a redraw of the &lt;tt&gt;layers&lt;/tt&gt; in &lt;tt&gt;rect&lt;/tt&gt; on the scene. Any cached content in &lt;tt&gt;layers&lt;/tt&gt; is unconditionally invalidated and redrawn.&lt;/p&gt;
&lt;p&gt;You can use this function overload to notify &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; of changes to the background or the foreground of the scene. This function is commonly used for scenes with tile-based backgrounds to notify changes when &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; has enabled CacheBackground.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QRectF TileScene::rectForTile(int x, int y) const
    {
        &lt;span class=&quot;comment&quot;&gt;// Return the rectangle for the tile at position (x, y).&lt;/span&gt;
        return QRectF(x * tileWidth, y * tileHeight, tileWidth, tileHeight);
    }

    void TileScene::setTile(int x, int y, const QPixmap &amp;amp;pixmap)
    {
        &lt;span class=&quot;comment&quot;&gt;// Sets or replaces the tile at position (x, y) with pixmap.&lt;/span&gt;
        if (x &amp;gt;= 0 &amp;amp;&amp;amp; x &amp;lt; numTilesH &amp;amp;&amp;amp; y &amp;gt;= 0 &amp;amp;&amp;amp; y &amp;lt; numTilesV) {
            tiles[y][x] = pixmap;
            invalidate(rectForTile(x, y), BackgroundLayer);
        }
    }

    void TileScene::drawBackground(QPainter *painter, const QRectF &amp;amp;exposed)
    {
        &lt;span class=&quot;comment&quot;&gt;// Draws all tiles that intersect the exposed area.&lt;/span&gt;
        for (int y = 0; y &amp;lt; numTilesV; ++y) {
            for (int x = 0; x &amp;lt; numTilesH; ++x) {
                QRectF rect = rectForTile(x, y);
                if (exposed.intersects(rect))
                    painter-&amp;gt;drawPixmap(rect.topLeft(), tiles[y][x]);
            }
        }
    }&lt;/pre&gt;
&lt;p&gt;Note that &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; currently supports background caching only (see QGraphicsView::CachedBackground). This function is equivalent to calling &lt;a href=&quot;QGraphicsScene.html#update(double, double, double, double)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; if any layer but &lt;a href=&quot;QGraphicsScene.html#SceneLayer-enum&quot;&gt;&lt;tt&gt;BackgroundLayer&lt;/tt&gt;&lt;/a&gt; is passed.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsView::resetCachedContent&lt;/tt&gt; */"/>
    <method name="public final void invalidate(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#invalidate(double, double, double, double, com.trolltech.qt.gui.QGraphicsScene.SceneLayers)&quot;&gt;invalidate&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, AllLayers). */"/>
    <method name="public final void invalidate()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#invalidate(double, double, double, double, com.trolltech.qt.gui.QGraphicsScene.SceneLayers)&quot;&gt;invalidate&lt;/tt&gt;&lt;/a&gt;(QRectF(), AllLayers). */"/>
    <method name="public final void invalidate(double x, double y, double w, double h, com.trolltech.qt.gui.QGraphicsScene.SceneLayers layers)" doc="/**
&lt;p&gt;This convenience function is equivalent to calling invalidate(&lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;), &lt;tt&gt;layers&lt;/tt&gt;);&lt;/p&gt;
 */"/>
    <method name="public final void invalidate(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#invalidate(double, double, double, double, com.trolltech.qt.gui.QGraphicsScene.SceneLayers)&quot;&gt;invalidate&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, AllLayers). */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsItemInterface itemAt(double x, double y)" doc="/**
&lt;p&gt;Returns the topmost item at the position specified by (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;), or 0 if there are no items at this position.&lt;/p&gt;
&lt;p&gt;This convenience function is equivalent to calling &lt;tt&gt;itemAt(QPointF(x, y))&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsItemInterface itemAt(com.trolltech.qt.core.QPointF pos)" doc="/**
&lt;p&gt;Returns the topmost visible item at the specified &lt;tt&gt;pos&lt;/tt&gt;, or 0 if there are no items at this position.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#items(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#collidingItems(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;collidingItems&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsScene.ItemIndexMethod itemIndexMethod()" doc="/**
&lt;p&gt;Returns the item indexing method..&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; applies an indexing algorithm to the scene, to speed up item discovery functions like &lt;a href=&quot;QGraphicsScene.html#items(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QGraphicsScene.html#itemAt(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt;. Indexing is most efficient for static scenes (i.e&amp;#x2e;, where items don't move around). For dynamic scenes, or scenes with many animated items, the index bookkeeping can outweight the fast lookup speeds.&lt;/p&gt;
&lt;p&gt;For the common case, the default index method &lt;a href=&quot;QGraphicsScene.html#ItemIndexMethod-enum&quot;&gt;&lt;tt&gt;BspTreeIndex&lt;/tt&gt;&lt;/a&gt; works fine. If your scene uses many animations and you are experiencing slowness, you can disable indexing by calling &lt;tt&gt;setItemIndexMethod(NoIndex)&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setItemIndexMethod(com.trolltech.qt.gui.QGraphicsScene.ItemIndexMethod)&quot;&gt;&lt;tt&gt;setItemIndexMethod&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#bspTreeDepth()&quot;&gt;&lt;tt&gt;bspTreeDepth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(com.trolltech.qt.gui.QPainterPath path, com.trolltech.qt.core.Qt.ItemSelectionMode mode)" doc="/**
&lt;p&gt;Returns all visible items that, depending on &lt;tt&gt;path&lt;/tt&gt;, are either inside or intersect with the path &lt;tt&gt;path&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value for &lt;tt&gt;mode&lt;/tt&gt; is Qt::IntersectsItemShape; all items whose exact shape intersects with or is contained by &lt;tt&gt;path&lt;/tt&gt; are returned.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#itemAt(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(com.trolltech.qt.gui.QPainterPath path)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#items(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;items&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;path&lt;/tt&gt;, Qt::IntersectsItemShape). */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items()" doc="/**
&lt;p&gt;Returns a list of all items on the scene, in no particular order.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#removeItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;removeItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(double x, double y, double w, double h, com.trolltech.qt.core.Qt.ItemSelectionMode mode)" doc="/**
&lt;p&gt;This convenience function is equivalent to calling items(&lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;), &lt;tt&gt;mode&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#items(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;items&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, Qt::IntersectsItemShape). */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(com.trolltech.qt.core.QPointF pos)" doc="/**
&lt;p&gt;Returns all visible items at position &lt;tt&gt;pos&lt;/tt&gt; in the scene. The items are listed in descending Z order (i.e&amp;#x2e;, the first item in the list is the top-most item, and the last item is the bottom-most item).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#itemAt(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(com.trolltech.qt.gui.QPolygonF polygon, com.trolltech.qt.core.Qt.ItemSelectionMode mode)" doc="/**
&lt;p&gt;Returns all visible items that, depending on &lt;tt&gt;mode&lt;/tt&gt;, are either inside or intersect with the polygon &lt;tt&gt;polygon&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value for &lt;tt&gt;mode&lt;/tt&gt; is Qt::IntersectsItemShape; all items whose exact shape intersects with or is contained by &lt;tt&gt;polygon&lt;/tt&gt; are returned.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#itemAt(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(com.trolltech.qt.gui.QPolygonF polygon)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#items(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;items&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;polygon&lt;/tt&gt;, Qt::IntersectsItemShape). */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.core.Qt.ItemSelectionMode mode)" doc="/**
&lt;p&gt;Returns all visible items that, depending on &lt;tt&gt;mode&lt;/tt&gt;, are either inside or intersect with the specified &lt;tt&gt;rect&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value for &lt;tt&gt;mode&lt;/tt&gt; is Qt::IntersectsItemShape; all items whose exact shape intersects with or is contained by &lt;tt&gt;rect&lt;/tt&gt; are returned.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#itemAt(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#items(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;items&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, Qt::IntersectsItemShape). */"/>
    <method name="public final com.trolltech.qt.core.QRectF itemsBoundingRect()" doc="/**
&lt;p&gt;Calculates and returns the bounding rect of all items on the scene. This function works by iterating over all items, and because if this, it can be slow for large scenes.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#sceneRect()&quot;&gt;&lt;tt&gt;sceneRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsItemInterface mouseGrabberItem()" doc="/**
&lt;p&gt;Returns the current mouse grabber item, or 0 if no item is currently grabbing the mouse. The mouse grabber item is the item that receives all mouse events sent to the scene.&lt;/p&gt;
&lt;p&gt;An item becomes a mouse grabber when it receives and accepts a mouse press event, and it stays the mouse grabber until either of the following events occur:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the item receives a mouse release event when there are no other buttons pressed, it loses the mouse grab.&lt;/li&gt;
&lt;li&gt;If the item becomes invisible (i.e&amp;#x2e;, someone calls &lt;tt&gt;item-&amp;gt;setVisible(false))&lt;/tt&gt;, or if it becomes disabled (i.e&amp;#x2e;, someone calls &lt;tt&gt;item-&amp;gt;setEnabled(false))&lt;/tt&gt;, it loses the mouse grab.&lt;/li&gt;
&lt;li&gt;If the item is removed from the scene, it loses the mouse grab.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the item loses its mouse grab, the scene will ignore all mouse events until a new item grabs the mouse (i.e&amp;#x2e;, until a new item receives a mouse press event).&lt;/p&gt;
 */"/>
    <method name="public final void removeItem(com.trolltech.qt.gui.QGraphicsItemInterface item)" doc="/**
&lt;p&gt;Removes the item &lt;tt&gt;item&lt;/tt&gt; and all its children from the scene. The ownership of &lt;tt&gt;item&lt;/tt&gt; is passed on to the caller (i.e&amp;#x2e;, &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; will no longer delete &lt;tt&gt;item&lt;/tt&gt; when destroyed).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#addItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void render(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRectF target, com.trolltech.qt.core.QRectF source, com.trolltech.qt.core.Qt.AspectRatioMode aspectRatioMode)" doc="/**
&lt;p&gt;Renders the &lt;tt&gt;source&lt;/tt&gt; rect from scene into &lt;tt&gt;target&lt;/tt&gt;, using &lt;tt&gt;painter&lt;/tt&gt;. This function is useful for capturing the contents of the scene onto a paint device, such as a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; (e.g&amp;#x2e;, to take a screenshot), or for printing with &lt;a href=&quot;QPrinter.html&quot;&gt;&lt;tt&gt;QPrinter&lt;/tt&gt;&lt;/a&gt;. For example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsScene scene;
    scene.addItem(...
    ...
    QPrinter printer(QPrinter::HighResolution);
    printer.setPageSize(QPrinter::A4);

    QPainter painter(&amp;amp;printer);
    scene.render(&amp;amp;painter);&lt;/pre&gt;
&lt;p&gt;If &lt;tt&gt;source&lt;/tt&gt; is a null rect, this function will use &lt;a href=&quot;QGraphicsScene.html#sceneRect()&quot;&gt;&lt;tt&gt;sceneRect&lt;/tt&gt;&lt;/a&gt; to determine what to render. If &lt;tt&gt;target&lt;/tt&gt; is a null rect, the dimensions of &lt;tt&gt;painter&lt;/tt&gt;'s paint device will be used.&lt;/p&gt;
&lt;p&gt;The source rect contents will be transformed according to &lt;tt&gt;aspectRatioMode&lt;/tt&gt; to fit into the target rect. By default, the aspect ratio is kept, and &lt;tt&gt;source&lt;/tt&gt; is scaled to fit in &lt;tt&gt;target&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsView::render&lt;/tt&gt; */"/>
    <method name="public final void render(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRectF target, com.trolltech.qt.core.QRectF source)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#render(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;render&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;target&lt;/tt&gt;, &lt;tt&gt;source&lt;/tt&gt;, Qt::KeepAspectRatio). */"/>
    <method name="public final void render(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRectF target)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#render(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;render&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;target&lt;/tt&gt;, QRectF(), Qt::KeepAspectRatio). */"/>
    <method name="public final void render(com.trolltech.qt.gui.QPainter painter)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#render(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;render&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, QRectF(), QRectF(), Qt::KeepAspectRatio). */"/>
    <method name="public final com.trolltech.qt.core.QRectF sceneRect()" doc="/**
&lt;p&gt;Returns the scene rectangle; the bounding rectangle of the scene.&lt;/p&gt;
&lt;p&gt;The scene rectangle defines the extent of the scene. It is primarily used by &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; to determine the view's default scrollable area, and by &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; to manage item indexing.&lt;/p&gt;
&lt;p&gt;If unset, or if set to a null &lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsScene.html#sceneRect()&quot;&gt;&lt;tt&gt;sceneRect&lt;/tt&gt;&lt;/a&gt; will return the largest bounding rect of all items on the scene since the scene was created (i.e&amp;#x2e;, a rectangle that grows when items are added to or moved in the scene, but never shrinks).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setSceneRect(com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;setSceneRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsView::sceneRect&lt;/tt&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; selectedItems()" doc="/**
&lt;p&gt;Returns a list of all currently selected items. The items are returned in no particular order.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setSelectionArea(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;setSelectionArea&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath selectionArea()" doc="/**
&lt;p&gt;Returns the selection area that was previously set with &lt;a href=&quot;QGraphicsScene.html#setSelectionArea(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;setSelectionArea&lt;/tt&gt;&lt;/a&gt;, or an empty &lt;a href=&quot;QPainterPath.html&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; if no selection area has been set.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setSelectionArea(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;setSelectionArea&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBackgroundBrush(com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Sets the background brush of the scene. to &lt;tt&gt;brush&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Set this property to changes the scene's background to a different color, gradient or texture. The default background brush is Qt::NoBrush. The background is drawn before (behind) the items.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsScene scene;
    QGraphicsView view(&amp;amp;scene);
    view.show();

&lt;span class=&quot;comment&quot;&gt;    // a blue background&lt;/span&gt;
    scene.setBackgroundBrush(Qt::blue);

&lt;span class=&quot;comment&quot;&gt;    // a gradient background&lt;/span&gt;
    QRadialGradient gradient(0, 0, 10);
    gradient.setSpread(QGradient::RepeatSpread);
    scene.setBackgroundBrush(gradient);&lt;/pre&gt;
&lt;p&gt;QGraphicsScene::render() calls &lt;a href=&quot;QGraphicsScene.html#drawBackground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawBackground&lt;/tt&gt;&lt;/a&gt; to draw the scene background. For more detailed control over how the background is drawn, you can reimplement &lt;a href=&quot;QGraphicsScene.html#drawBackground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawBackground&lt;/tt&gt;&lt;/a&gt; in a subclass of &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#backgroundBrush()&quot;&gt;&lt;tt&gt;backgroundBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBspTreeDepth(int depth)" doc="/**
&lt;p&gt;Sets the depth of &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;'s BSP index tree to &lt;tt&gt;depth&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property has no effect when &lt;a href=&quot;QGraphicsScene.html#ItemIndexMethod-enum&quot;&gt;&lt;tt&gt;NoIndex&lt;/tt&gt;&lt;/a&gt; is used.&lt;/p&gt;
&lt;p&gt;This value determines the depth of &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;'s BSP tree. The depth directly affects &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;'s performance and memory usage; the latter growing exponentially with the depth of the tree. With an optimal tree depth, &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; can instantly determine the locality of items, even for scenes with thousands or millions of items. This also greatly improves rendering performance.&lt;/p&gt;
&lt;p&gt;By default, the value is 0, in which case Qt will guess a reasonable default depth based on the size, location and number of items in the scene. If these parameters change frequently, however, you may experience slowdowns as &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; retunes the depth internally. You can avoid potential slowdowns by fixating the tree depth through setting this property.&lt;/p&gt;
&lt;p&gt;The depth of the tree and the size of the scene rectangle decide the granularity of the scene's partitioning. The size of each scene segment is determined by the following algorithm:&lt;/p&gt;
&lt;pre&gt;    QSizeF segmentSize = sceneRect().size() / pow(2, depth - 1);&lt;/pre&gt;
&lt;p&gt;The BSP tree has an optimal size when each segment contains between 0 and 10 items.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#bspTreeDepth()&quot;&gt;&lt;tt&gt;bspTreeDepth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#itemIndexMethod()&quot;&gt;&lt;tt&gt;itemIndexMethod&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFocus(com.trolltech.qt.core.Qt.FocusReason focusReason)" doc="/**
&lt;p&gt;Sets focus on the scene by sending a &lt;a href=&quot;QFocusEvent.html&quot;&gt;&lt;tt&gt;QFocusEvent&lt;/tt&gt;&lt;/a&gt; to the scene, passing &lt;tt&gt;focusReason&lt;/tt&gt; as the reason. If the scene regains focus after having previously lost it while an item had focus, the last focus item will receive focus with &lt;tt&gt;focusReason&lt;/tt&gt; as the reason.&lt;/p&gt;
&lt;p&gt;If the scene already has focus, this function does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#hasFocus()&quot;&gt;&lt;tt&gt;hasFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#clearFocus()&quot;&gt;&lt;tt&gt;clearFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#setFocusItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocusItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFocus()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#setFocus(com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt;(Qt::OtherFocusReason). */"/>
    <method name="public final void setFocusItem(com.trolltech.qt.gui.QGraphicsItemInterface item, com.trolltech.qt.core.Qt.FocusReason focusReason)" doc="/**
&lt;p&gt;Sets the scene's focus item to &lt;tt&gt;item&lt;/tt&gt;, with the focus reason &lt;tt&gt;focusReason&lt;/tt&gt;, after removing focus from any previous item that may have had focus.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;item&lt;/tt&gt; is 0, or if it either does not accept focus (i.e&amp;#x2e;, it does not have the QGraphicsItem::ItemIsFocusable flag enabled), or is not visible or not enabled, this function only removes focus from any previous focusitem.&lt;/p&gt;
&lt;p&gt;If item is not 0, and the scene does not currently have focus (i.e&amp;#x2e;, &lt;a href=&quot;QGraphicsScene.html#hasFocus()&quot;&gt;&lt;tt&gt;hasFocus&lt;/tt&gt;&lt;/a&gt; returns false), this function will call &lt;a href=&quot;QGraphicsScene.html#setFocus(com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt; automatically.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#focusItem()&quot;&gt;&lt;tt&gt;focusItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#hasFocus()&quot;&gt;&lt;tt&gt;hasFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#setFocus(com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFocusItem(com.trolltech.qt.gui.QGraphicsItemInterface item)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#setFocusItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;setFocusItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;item&lt;/tt&gt;, Qt::OtherFocusReason). */"/>
    <method name="public final void setForegroundBrush(com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Sets the foreground brush of the scene. to &lt;tt&gt;brush&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Change this property to set the scene's foreground to a different color, gradient or texture.&lt;/p&gt;
&lt;p&gt;The foreground is drawn after (on top of) the items. The default foreground brush is Qt::NoBrush ( i.e&amp;#x2e; the foreground is not drawn).&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsScene scene;
    QGraphicsView view(&amp;amp;scene);
    view.show();

&lt;span class=&quot;comment&quot;&gt;    // a white semi-transparent foreground&lt;/span&gt;
    scene.setForegroundBrush(QColor(255, 255, 255, 127));

&lt;span class=&quot;comment&quot;&gt;    // a grid foreground&lt;/span&gt;
    scene.setForegroundBrush(QBrush(Qt::lightGray, Qt::CrossPattern));&lt;/pre&gt;
&lt;p&gt;QGraphicsScene::render() calls &lt;a href=&quot;QGraphicsScene.html#drawForeground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawForeground&lt;/tt&gt;&lt;/a&gt; to draw the scene foreground. For more detailed control over how the foreground is drawn, you can reimplement the &lt;a href=&quot;QGraphicsScene.html#drawForeground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawForeground&lt;/tt&gt;&lt;/a&gt; function in a &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#foregroundBrush()&quot;&gt;&lt;tt&gt;foregroundBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setItemIndexMethod(com.trolltech.qt.gui.QGraphicsScene.ItemIndexMethod method)" doc="/**
&lt;p&gt;Sets the item indexing method. to &lt;tt&gt;method&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; applies an indexing algorithm to the scene, to speed up item discovery functions like &lt;a href=&quot;QGraphicsScene.html#items(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QGraphicsScene.html#itemAt(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt;. Indexing is most efficient for static scenes (i.e&amp;#x2e;, where items don't move around). For dynamic scenes, or scenes with many animated items, the index bookkeeping can outweight the fast lookup speeds.&lt;/p&gt;
&lt;p&gt;For the common case, the default index method &lt;a href=&quot;QGraphicsScene.html#ItemIndexMethod-enum&quot;&gt;&lt;tt&gt;BspTreeIndex&lt;/tt&gt;&lt;/a&gt; works fine. If your scene uses many animations and you are experiencing slowness, you can disable indexing by calling &lt;tt&gt;setItemIndexMethod(NoIndex)&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#itemIndexMethod()&quot;&gt;&lt;tt&gt;itemIndexMethod&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#bspTreeDepth()&quot;&gt;&lt;tt&gt;bspTreeDepth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSceneRect(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Sets the scene rectangle; the bounding rectangle of the scene.&lt;/p&gt;
&lt;p&gt;The scene rectangle defines the extent of the scene. It is primarily used by &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; to determine the view's default scrollable area, and by &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; to manage item indexing.&lt;/p&gt;
&lt;p&gt;If unset, or if set to a null &lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsScene.html#sceneRect()&quot;&gt;&lt;tt&gt;sceneRect&lt;/tt&gt;&lt;/a&gt; will return the largest bounding rect of all items on the scene since the scene was created (i.e&amp;#x2e;, a rectangle that grows when items are added to or moved in the scene, but never shrinks).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsView::sceneRect&lt;/tt&gt; */"/>
    <method name="public final void setSceneRect(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Sets the scene rectangle; the bounding rectangle of the scene to &lt;tt&gt;rect&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The scene rectangle defines the extent of the scene. It is primarily used by &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; to determine the view's default scrollable area, and by &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; to manage item indexing.&lt;/p&gt;
&lt;p&gt;If unset, or if set to a null &lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsScene.html#sceneRect()&quot;&gt;&lt;tt&gt;sceneRect&lt;/tt&gt;&lt;/a&gt; will return the largest bounding rect of all items on the scene since the scene was created (i.e&amp;#x2e;, a rectangle that grows when items are added to or moved in the scene, but never shrinks).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsView::sceneRect&lt;/tt&gt; */"/>
    <method name="public final void setSelectionArea(com.trolltech.qt.gui.QPainterPath path, com.trolltech.qt.core.Qt.ItemSelectionMode arg__2)" doc="/**
&lt;p&gt;Sets the selection area to &lt;tt&gt;path&lt;/tt&gt; using &lt;tt&gt;arg__2&lt;/tt&gt; to determine if items are included in the selection area.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#clearSelection()&quot;&gt;&lt;tt&gt;clearSelection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#selectionArea()&quot;&gt;&lt;tt&gt;selectionArea&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSelectionArea(com.trolltech.qt.gui.QPainterPath path)" doc="/**
&lt;p&gt;Sets the selection area to &lt;tt&gt;path&lt;/tt&gt;. All items within this area are immediately selected, and all items outside are unselected. You can get the list of all selected items by calling &lt;a href=&quot;QGraphicsScene.html#selectedItems()&quot;&gt;&lt;tt&gt;selectedItems&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For an item to be selected, it must be marked as &lt;i&gt;selectable&lt;/i&gt; (QGraphicsItem::ItemIsSelectable).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#clearSelection()&quot;&gt;&lt;tt&gt;clearSelection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#selectionArea()&quot;&gt;&lt;tt&gt;selectionArea&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void update(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Schedules a redraw of the area &lt;tt&gt;rect&lt;/tt&gt; on the scene.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#sceneRect()&quot;&gt;&lt;tt&gt;sceneRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#changed(java.util.List)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void update()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#update(double, double, double, double)&quot;&gt;update&lt;/tt&gt;&lt;/a&gt;(QRectF()). */"/>
    <method name="public final void update(double x, double y, double w, double h)" doc="/**
&lt;p&gt;This convenience function is equivalent to calling update(&lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;));&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsView&gt; views()" doc="/**
&lt;p&gt;Returns a list of all the views that display this scene.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsView::scene&lt;/tt&gt; */"/>
    <method name="public final double width()" doc="/**
&lt;p&gt;This convenience function is equivalent to calling &lt;a href=&quot;QGraphicsScene.html#sceneRect()&quot;&gt;&lt;tt&gt;sceneRect&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QGraphicsScene.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void contextMenuEvent(com.trolltech.qt.gui.QGraphicsSceneContextMenuEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive context menu events. The default implementation forwards the event to the item at the scene position provided by the event.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::contextMenuEvent&lt;/tt&gt; */"/>
    <method name="protected void dragEnterEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive drag enter events for the scene.&lt;/p&gt;
&lt;p&gt;The default implementation accepts the event and prepares the scene to accept drag move events.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::dragEnterEvent&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dragMoveEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dragMoveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dragLeaveEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dragLeaveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dropEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dropEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void dragLeaveEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive drag leave events for the scene.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::dragLeaveEvent&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dragEnterEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dragEnterEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dragMoveEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dragMoveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dropEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dropEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void dragMoveEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive drag move events for the scene.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::dragMoveEvent&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dragEnterEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dragEnterEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dragLeaveEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dragLeaveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dropEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dropEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void drawBackground(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Draws the background of the scene using &lt;tt&gt;painter&lt;/tt&gt;, before any items and the foreground are drawn. Reimplement this function to provide a custom background for the scene.&lt;/p&gt;
&lt;p&gt;All painting is done in &lt;i&gt;scene&lt;/i&gt; coordinates. The &lt;tt&gt;rect&lt;/tt&gt; parameter is the exposed rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#drawForeground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawForeground&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#drawItems(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QGraphicsItemInterface[], com.trolltech.qt.gui.QStyleOptionGraphicsItem[], com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;drawItems&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void drawForeground(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Draws the foreground of the scene using &lt;tt&gt;painter&lt;/tt&gt;, after the background and all items have been drawn. Reimplement this function to provide a custom foreground for the scene.&lt;/p&gt;
&lt;p&gt;All painting is done in &lt;i&gt;scene&lt;/i&gt; coordinates. The &lt;tt&gt;rect&lt;/tt&gt; parameter is the exposed rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#drawBackground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawBackground&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#drawItems(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QGraphicsItemInterface[], com.trolltech.qt.gui.QStyleOptionGraphicsItem[], com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;drawItems&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void drawItems(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.gui.QGraphicsItemInterface[] items, com.trolltech.qt.gui.QStyleOptionGraphicsItem[] options, com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#drawItems(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QGraphicsItemInterface[], com.trolltech.qt.gui.QStyleOptionGraphicsItem[], com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;drawItems&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;items&lt;/tt&gt;, &lt;tt&gt;options&lt;/tt&gt;, &lt;tt&gt;widget&lt;/tt&gt;, 0). */"/>
    <method name="protected final void drawItems(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.gui.QGraphicsItemInterface[] items, com.trolltech.qt.gui.QStyleOptionGraphicsItem[] options)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsScene.html#drawItems(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QGraphicsItemInterface[], com.trolltech.qt.gui.QStyleOptionGraphicsItem[], com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;drawItems&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;items&lt;/tt&gt;, &lt;tt&gt;options&lt;/tt&gt;, , 0). */"/>
    <method name="protected void dropEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive drop events for the scene.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::dropEvent&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dragEnterEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dragEnterEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dragMoveEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dragMoveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#dragLeaveEvent(com.trolltech.qt.gui.QGraphicsSceneDragDropEvent)&quot;&gt;&lt;tt&gt;dragLeaveEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;Processes the event &lt;tt&gt;event&lt;/tt&gt;, and dispatches it to the respective event handlers.&lt;/p&gt;
&lt;p&gt;In addition to calling the convenience event handlers, this function is responsible for converting mouse move events to hover events for when there is no mouse grabber item. Hover events are delivered directly to items; there is no convenience function for them.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#contextMenuEvent(com.trolltech.qt.gui.QGraphicsSceneContextMenuEvent)&quot;&gt;&lt;tt&gt;contextMenuEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#mousePressEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#mouseMoveEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#mouseReleaseEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#mouseDoubleClickEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent)&quot;&gt;&lt;tt&gt;mouseDoubleClickEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void focusInEvent(com.trolltech.qt.gui.QFocusEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive focus in events.&lt;/p&gt;
&lt;p&gt;The default implementation sets focus on the scene, and then on the last focus item.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::focusOutEvent&lt;/tt&gt; */"/>
    <method name="protected void focusOutEvent(com.trolltech.qt.gui.QFocusEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive focus out events.&lt;/p&gt;
&lt;p&gt;The default implementation removes focus from any focus item, then removes focus from the scene.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::focusInEvent&lt;/tt&gt; */"/>
    <method name="protected void helpEvent(com.trolltech.qt.gui.QGraphicsSceneHelpEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive help events. The events are of type QEvent::ToolTip, which are created when a tooltip is requested.&lt;/p&gt;
&lt;p&gt;The default implementation shows the tooltip of the topmost item, i.e&amp;#x2e;, the item with the highest z-value, at the mouse cursor position. If no item has a tooltip set, this function does nothing.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::toolTip&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsSceneHelpEvent.html&quot;&gt;&lt;tt&gt;QGraphicsSceneHelpEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void inputMethodEvent(com.trolltech.qt.gui.QInputMethodEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive input method events for the scene.&lt;/p&gt;
&lt;p&gt;The default implementation forwards the event to the &lt;a href=&quot;QGraphicsScene.html#focusItem()&quot;&gt;&lt;tt&gt;focusItem&lt;/tt&gt;&lt;/a&gt;. If no item currently has focus, this function does nothing.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::inputMethodEvent&lt;/tt&gt; */"/>
    <method name="public java.lang.Object inputMethodQuery(com.trolltech.qt.core.Qt.InputMethodQuery query)" doc="/**
&lt;p&gt;This method is used by input methods to query a set of properties of the scene to be able to support complex input method operations as support for surrounding text and reconversions.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;query&lt;/tt&gt; parameter specifies which property is queried.&lt;/p&gt;

@see &lt;tt&gt;QWidget::inputMethodQuery&lt;/tt&gt; */"/>
    <method name="protected void keyPressEvent(com.trolltech.qt.gui.QKeyEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive keypress events. The default implementation forwards the event to current focus item.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::keyPressEvent&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsScene.html#focusItem()&quot;&gt;&lt;tt&gt;focusItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive key release events. The default implementation forwards the event to current focus item.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::keyReleaseEvent&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsScene.html#focusItem()&quot;&gt;&lt;tt&gt;focusItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void mouseDoubleClickEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive mouse doubleclick events for the scene.&lt;/p&gt;
&lt;p&gt;If someone doubleclicks on the scene, the scene will first receive a mouse press event, followed by a release event (i.e&amp;#x2e;, a click), then a doubleclick event, and finally a release event. If the doubleclick event is delivered to a different item than the one that received the first press and release, it will be delivered as a press event. However, tripleclick events are not delivered as doubleclick events in this case.&lt;/p&gt;
&lt;p&gt;The default implementation is similar to &lt;a href=&quot;QGraphicsScene.html#mousePressEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::mousePressEvent&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::mouseMoveEvent&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::mouseReleaseEvent&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::setAcceptedMouseButtons&lt;/tt&gt; */"/>
    <method name="protected void mouseMoveEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive mouse move events for the scene.&lt;/p&gt;
&lt;p&gt;The default implementation depends on the mouse grabber state. If there is a mouse grabber item, the event is sent to the mouse grabber; otherwise, the event is ignored.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::mousePressEvent&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::mouseReleaseEvent&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::mouseDoubleClickEvent&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::setAcceptedMouseButtons&lt;/tt&gt; */"/>
    <method name="protected void mousePressEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive mouse press events for the scene.&lt;/p&gt;
&lt;p&gt;The default implementation depends on the state of the scene. If there is a mouse grabber item, then the event is sent to the mouse grabber. Otherwise, it is forwarded to the topmost item that accepts mouse events at the scene position from the event, and that item promptly becomes the mouse grabber item.&lt;/p&gt;
&lt;p&gt;If there is no item at the given position on the scene, the selection area is reset, any focus item loses its input focus, and the event is then ignored.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::mousePressEvent&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::setAcceptedMouseButtons&lt;/tt&gt; */"/>
    <method name="protected void mouseReleaseEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive mouse release events for the scene.&lt;/p&gt;
&lt;p&gt;The default implementation depends on the mouse grabber state. If there is no mouse grabber, the event is ignored. Otherwise, if there is a mouse grabber item, the event is sent to the mouse grabber. If this mouse release represents the last pressed button on the mouse, the mouse grabber item then loses the mouse grab.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::mousePressEvent&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::mouseMoveEvent&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::mouseDoubleClickEvent&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::setAcceptedMouseButtons&lt;/tt&gt; */"/>
    <method name="protected void wheelEvent(com.trolltech.qt.gui.QGraphicsSceneWheelEvent event)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;event&lt;/tt&gt;, can be reimplemented in a subclass to receive mouse wheel events for the scene.&lt;/p&gt;
&lt;p&gt;By default, the event is delivered to the topmost visible item under the cursor. If ignored, the event propagates to the item beneath, and again until the event is accepted, or it reaches the scene. If no items accept the event, it is ignored.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsItem::wheelEvent&lt;/tt&gt; */"/>
    <enum name="SceneLayer" doc="/**
&lt;p&gt;This enum describes the rendering layers in a &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;. When &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; draws the scene contents, it renders each of these layers separately, in order.&lt;/p&gt;
&lt;p&gt;Each layer represents a flag that can be OR'ed together when calling functions such as &lt;a href=&quot;QGraphicsScene.html#invalidate(double, double, double, double, com.trolltech.qt.gui.QGraphicsScene.SceneLayers)&quot;&gt;&lt;tt&gt;invalidate&lt;/tt&gt;&lt;/a&gt; or QGraphicsView::invalidateScene().&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#invalidate(double, double, double, double, com.trolltech.qt.gui.QGraphicsScene.SceneLayers)&quot;&gt;&lt;tt&gt;invalidate&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsView::invalidateScene&lt;/tt&gt; */">
        <enum-value name="ItemLayer" doc="/**
&lt;p&gt;The item layer. &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; renders all items are in this layer by calling the virtual function &lt;a href=&quot;QGraphicsScene.html#drawItems(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QGraphicsItemInterface[], com.trolltech.qt.gui.QStyleOptionGraphicsItem[], com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;drawItems&lt;/tt&gt;&lt;/a&gt;. The item layer is drawn after the background layer, but before the foreground layer.&lt;/p&gt;
 */"/>
        <enum-value name="BackgroundLayer" doc="/**
&lt;p&gt;The background layer. &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; renders the scene's background in this layer by calling the virtual function &lt;a href=&quot;QGraphicsScene.html#drawBackground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawBackground&lt;/tt&gt;&lt;/a&gt;. The background layer is drawn first of all layers.&lt;/p&gt;
 */"/>
        <enum-value name="ForegroundLayer" doc="/**
&lt;p&gt;The foreground layer. &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; renders the scene's foreground in this layer by calling the virtual function &lt;a href=&quot;QGraphicsScene.html#drawForeground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawForeground&lt;/tt&gt;&lt;/a&gt;. The foreground layer is drawn last of all layers.&lt;/p&gt;
 */"/>
        <enum-value name="AllLayers" doc="/**
&lt;p&gt;All layers; this value represents a combination of all three layers.&lt;/p&gt;
 */"/>
</enum>
    <enum name="ItemIndexMethod" doc="/**
&lt;p&gt;This enum describes the indexing algorithms &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; provides for managing positional information about items on the scene.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsScene.html#setItemIndexMethod(com.trolltech.qt.gui.QGraphicsScene.ItemIndexMethod)&quot;&gt;&lt;tt&gt;setItemIndexMethod&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsScene.html#bspTreeDepth()&quot;&gt;&lt;tt&gt;bspTreeDepth&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="BspTreeIndex" doc="/**
&lt;p&gt;A Binary Space Partitioning tree is applied. All &lt;a href=&quot;QGraphicsScene.html#QGraphicsScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;'s item location algorithms are of an order close to logarithmic complexity, by making use of binary search. Adding, moving and removing items is logarithmic. This approach is best for static scenes (i.e&amp;#x2e;, scenes where most items do not move).&lt;/p&gt;
 */"/>
        <enum-value name="NoIndex" doc="/**
&lt;p&gt;No index is applied. Item location is of linear complexity, as all items on the scene are searched. Adding, moving and removing items, however, is done in constant time. This approach is ideal for dynamic scenes, where many items are added, moved or removed continuously.&lt;/p&gt;
 */"/>
</enum>
</class>