<class name="QGraphicsView" doc="/**
&lt;p&gt;The &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; class provides a widget for displaying the contents of a &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; visualizes the contents of a &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; in a scrollable viewport. To create a scene with geometrical items, see &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;'s documentation. &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&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;To visualize a scene, you start by constructing a &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; object, passing the address of the scene you want to visualize to &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;'s constructor. Alternatively, you can call &lt;a href=&quot;QGraphicsView.html#setScene(com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;setScene&lt;/tt&gt;&lt;/a&gt; to set the scene at a later point. After you call &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;, the view will by default scroll to the center of the scene and display any items that are visible at this point. For 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;You can explicitly scroll to any position on the scene by using the scroll bars, or by calling &lt;a href=&quot;QGraphicsView.html#centerOn(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;centerOn&lt;/tt&gt;&lt;/a&gt;. By passing a point to &lt;a href=&quot;QGraphicsView.html#centerOn(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;centerOn&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will scroll its viewport to ensure that the point is centered in the view. An overload is provided for scrolling to a &lt;a href=&quot;QGraphicsItem.html&quot;&gt;&lt;tt&gt;QGraphicsItem&lt;/tt&gt;&lt;/a&gt;, in which case &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will see to that the center of the item is centered in the view. If all you want is to ensure that a certain area is visible, (but not necessarily centered,) you can call &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; can be used to visualize a whole scene, or only parts of it. The visualized area is by default detected automatically when the view is displayed for the first time (by calling QGraphicsScene::itemsBoundingRect()). To set the visualized area rectangle yourself, you can call &lt;a href=&quot;QGraphicsView.html#setSceneRect(double, double, double, double)&quot;&gt;&lt;tt&gt;setSceneRect&lt;/tt&gt;&lt;/a&gt;. This will adjust the scroll bars' ranges appropriately. Note that although the scene supports a virtually unlimited size, the range of the scroll bars will never exceed the range of an integer (INT_MIN, INT_MAX). When the scene is larger than the scroll bars' values, you can choose to use &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; to navigate the scene instead.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; visualizes the scene by calling &lt;a href=&quot;QGraphicsView.html#render(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;&lt;tt&gt;render&lt;/tt&gt;&lt;/a&gt;. By default, the items are drawn onto the viewport by using a regular &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;, and using default render hints. To change the default render hints that &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; passes to &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; when painting items, you can call &lt;a href=&quot;QGraphicsView.html#setRenderHints(com.trolltech.qt.gui.QPainter.RenderHints)&quot;&gt;&lt;tt&gt;setRenderHints&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;By default, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; provides a regular &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; for the viewport widget. You can access this widget by calling &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt;, or you can replace it by calling &lt;a href=&quot;QAbstractScrollArea.html#setViewport(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt;. To render using OpenGL, simply call &lt;a href=&quot;QAbstractScrollArea.html#setViewport(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt;(new &lt;a href=&quot;%2E%2E/opengl/QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt;). &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; takes ownership of the viewport widget.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; supports affine transformations, using &lt;a href=&quot;QMatrix.html&quot;&gt;&lt;tt&gt;QMatrix&lt;/tt&gt;&lt;/a&gt;. You can either pass a matrix to &lt;a href=&quot;QGraphicsView.html#setMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setMatrix&lt;/tt&gt;&lt;/a&gt;, or you can call one of the convenience functions &lt;a href=&quot;QGraphicsView.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsView.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QGraphicsView.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;. The most two common transformations are scaling, which is used to implement zooming, and rotation. &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; keeps the center of the view fixed during a transformation.&lt;/p&gt;
&lt;p&gt;You can interact with the items on the scene by using the mouse and keyboard. &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; translates the mouse and key events into &lt;i&gt;scene&lt;/i&gt; events, (events that inherit &lt;a href=&quot;QGraphicsSceneEvent.html&quot;&gt;&lt;tt&gt;QGraphicsSceneEvent&lt;/tt&gt;&lt;/a&gt;,), and forward them to the visualized scene. In the end, it's the individual item that handles the events and reacts to them. For example, if you click on a selectable item, the item will typically let the scene know that it has been selected, and it will also redraw itself to display a selection rectangle. Similiary, if you click and drag the mouse to move a movable item, it's the item that handles the mouse moves and moves itself. Item interaction is enabled by default, and you can toggle it by calling &lt;a href=&quot;QGraphicsView.html#setInteractive(boolean)&quot;&gt;&lt;tt&gt;setInteractive&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can also provide your own custom scene interaction, by creating a subclass of &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;, and reimplementing the mouse and key event handlers. To simplify how you programmatically interact with items in the view, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; provides the mapping functions &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QGraphicsView.html#mapFromScene(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;mapFromScene&lt;/tt&gt;&lt;/a&gt;, and the item accessors &lt;a href=&quot;QGraphicsView.html#items(int, int, int, int, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QGraphicsView.html#itemAt(int, int)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt;. These functions allow you to map points, rectangles, polygons and paths between view coordinates and scene coordinates, and to find items on the scene using view coordinates.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/graphicsview-view.png&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&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;QGraphicsSceneEvent.html&quot;&gt;&lt;tt&gt;QGraphicsSceneEvent&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&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.QPoint pos)&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;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QGraphicsView(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;. &lt;tt&gt;parent&lt;/tt&gt; is passed to &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;'s constructor.&lt;/p&gt;
 */"/>
    <method name="public QGraphicsView()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public QGraphicsView(com.trolltech.qt.gui.QGraphicsScene scene, com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; and sets the visualized scene to &lt;tt&gt;scene&lt;/tt&gt;. &lt;tt&gt;parent&lt;/tt&gt; is passed to &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;'s constructor.&lt;/p&gt;
 */"/>
    <method name="public QGraphicsView(com.trolltech.qt.gui.QGraphicsScene scene)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;scene&lt;/tt&gt;, 0). */"/>
    <method name="public final com.trolltech.qt.core.Qt.Alignment alignment()" doc="/**
&lt;p&gt;Returns the alignment of the scene in the view when the whole scene is visible..&lt;/p&gt;
&lt;p&gt;If the whole scene is visible in the view, (i.e&amp;#x2e;, there are no visible scroll bars,) the view's alignment will decide where the scene will be rendered in the view. For example, if the alignment is Qt::AlignCenter, which is default, the scene will be centered in the view, and if the alignment is (Qt::AlignLeft | Qt::AlignTop), the scene will be rendered in the top-left corner of the view.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setAlignment(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;setAlignment&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;This property sets the background brush for the scene in this view. It is used to override the scene's own background, and defines the behavior of &lt;a href=&quot;QGraphicsView.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 provide custom background drawing for this view, you can reimplement &lt;a href=&quot;QGraphicsView.html#drawBackground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawBackground&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setBackgroundBrush(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBackgroundBrush&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsScene::backgroundBrush&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsView.html#foregroundBrush()&quot;&gt;&lt;tt&gt;foregroundBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsView.CacheMode cacheMode()" doc="/**
&lt;p&gt;Returns which parts of the view are cached.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; can cache pre-rendered content in a &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;, which is then drawn onto the viewport. The purpose of such caching is to speed up the total rendering time for areas that are slow to render. Texture, gradient and alpha blended backgrounds, for example, can be notibly slow to render; especially with a transformed view. The &lt;a href=&quot;QGraphicsView.html#CacheModeFlag-enum&quot;&gt;&lt;tt&gt;CacheBackground&lt;/tt&gt;&lt;/a&gt; flag enables caching of the view's background. For example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsView view;
    view.setBackgroundBrush(QImage(&amp;quot;:/images/backgroundtile.png&amp;quot;));
    view.setCacheMode(QGraphicsView::CacheBackground);&lt;/pre&gt;
&lt;p&gt;The cache is invalidated every time the view is transformed. However, when scrolling, only partial invalidation is required.&lt;/p&gt;
&lt;p&gt;By default, nothing is cached.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setCacheMode(com.trolltech.qt.gui.QGraphicsView.CacheMode)&quot;&gt;&lt;tt&gt;setCacheMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#resetCachedContent()&quot;&gt;&lt;tt&gt;resetCachedContent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmapCache.html&quot;&gt;&lt;tt&gt;QPixmapCache&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void centerOn(double x, double y)" doc="/**
&lt;p&gt;This function is provided for convenience. It's equivalent to calling &lt;a href=&quot;QGraphicsView.html#centerOn(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;centerOn&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;%2E%2E/core/QPointF.html&quot;&gt;&lt;tt&gt;QPointF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;)).&lt;/p&gt;
 */"/>
    <method name="public final void centerOn(com.trolltech.qt.core.QPointF pos)" doc="/**
&lt;p&gt;Scrolls the contents of the viewport to ensure that the scene coordinate &lt;tt&gt;pos&lt;/tt&gt;, is centered in the view.&lt;/p&gt;
&lt;p&gt;Because &lt;tt&gt;pos&lt;/tt&gt; is a floating point coordinate, and the scroll bars operate on integer coordinates, the centering is only an approximation.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; If the item is close to or outside the border, it will be visible in the view, but not centered.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void centerOn(com.trolltech.qt.gui.QGraphicsItemInterface item)" doc="/**
&lt;p&gt;Scrolls the contents of the viewport to ensure that &lt;tt&gt;item&lt;/tt&gt; is centered in the view.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsView.DragMode dragMode()" doc="/**
&lt;p&gt;Returns the behavior for dragging the mouse over the scene while the left mouse button is pressed..&lt;/p&gt;
&lt;p&gt;This property defines what should happen when the user clicks on the scene background and drags the mouse (e.g&amp;#x2e;, scrolling the viewport contents using a pointing hand cursor, or selecting multiple items with a rubber band). The default value, &lt;a href=&quot;QGraphicsView.html#DragMode-enum&quot;&gt;&lt;tt&gt;NoDrag&lt;/tt&gt;&lt;/a&gt;, does nothing.&lt;/p&gt;
&lt;p&gt;This behavior only affects mouse clicks that are not handled by any item. You can define a custom behavior by creating a subclass of &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; and reimplementing &lt;a href=&quot;QGraphicsView.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setDragMode(com.trolltech.qt.gui.QGraphicsView.DragMode)&quot;&gt;&lt;tt&gt;setDragMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void ensureVisible(com.trolltech.qt.core.QRectF rect, int xmargin, int ymargin)" doc="/**
&lt;p&gt;Scrolls the contents of the viewport so that the scene rectangle &lt;tt&gt;rect&lt;/tt&gt; is visible, with margins specified in pixels by &lt;tt&gt;xmargin&lt;/tt&gt; and &lt;tt&gt;ymargin&lt;/tt&gt;. If the specified rect cannot be reached, the contents are scrolled to the nearest valid position. The default value for both margins is 50 pixels.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#centerOn(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;centerOn&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void ensureVisible(com.trolltech.qt.core.QRectF rect, int xmargin)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, &lt;tt&gt;xmargin&lt;/tt&gt;, 50). */"/>
    <method name="public final void ensureVisible(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, 50, 50). */"/>
    <method name="public final void ensureVisible(double x, double y, double w, double h, int xmargin, int ymargin)" doc="/**
&lt;p&gt;This function is provided for convenience. It's equivalent to calling &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&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;xmargin&lt;/tt&gt;, &lt;tt&gt;ymargin&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void ensureVisible(double x, double y, double w, double h, int xmargin)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&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;xmargin&lt;/tt&gt;, 50). */"/>
    <method name="public final void ensureVisible(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&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;, 50, 50). */"/>
    <method name="public final void ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface item, int xmargin, int ymargin)" doc="/**
&lt;p&gt;Scrolls the contents of the viewport so that the center of item &lt;tt&gt;item&lt;/tt&gt; is visible, with margins specified in pixels by &lt;tt&gt;xmargin&lt;/tt&gt; and &lt;tt&gt;ymargin&lt;/tt&gt;. If the specified point cannot be reached, the contents are scrolled to the nearest valid position. The default value for both margins is 50 pixels.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#centerOn(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;centerOn&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface item, int xmargin)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;item&lt;/tt&gt;, &lt;tt&gt;xmargin&lt;/tt&gt;, 50). */"/>
    <method name="public final void ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface item)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;item&lt;/tt&gt;, 50, 50). */"/>
    <method name="public final void fitInView(com.trolltech.qt.gui.QGraphicsItemInterface item, com.trolltech.qt.core.Qt.AspectRatioMode aspectRadioMode)" doc="/**
&lt;p&gt;Ensures that &lt;tt&gt;item&lt;/tt&gt; fits tightly inside the view, scaling the view according to &lt;tt&gt;aspectRadioMode&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#centerOn(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;centerOn&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void fitInView(com.trolltech.qt.gui.QGraphicsItemInterface item)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#fitInView(double, double, double, double, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;&lt;tt&gt;fitInView&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;item&lt;/tt&gt;, Qt::IgnoreAspectRatio). */"/>
    <method name="public final void fitInView(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.core.Qt.AspectRatioMode aspectRadioMode)" doc="/**
&lt;p&gt;Scales the view matrix and scrolls the scroll bars to ensure that the scene rectangle &lt;tt&gt;rect&lt;/tt&gt; fits inside the viewport. &lt;tt&gt;rect&lt;/tt&gt; must be inside the scene rect; otherwise, &lt;a href=&quot;QGraphicsView.html#fitInView(double, double, double, double, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;&lt;tt&gt;fitInView&lt;/tt&gt;&lt;/a&gt; cannot guarantee that the whole rect is visible.&lt;/p&gt;
&lt;p&gt;This function keeps the view's rotation, translation, or shear. The view is scaled according to &lt;tt&gt;aspectRadioMode&lt;/tt&gt;. &lt;tt&gt;rect&lt;/tt&gt; will be centered in the view if it does not fit tightly.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setMatrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#centerOn(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;centerOn&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void fitInView(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#fitInView(double, double, double, double, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;&lt;tt&gt;fitInView&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, Qt::IgnoreAspectRatio). */"/>
    <method name="public final void fitInView(double x, double y, double w, double h, com.trolltech.qt.core.Qt.AspectRatioMode aspectRadioMode)" doc="/**
&lt;p&gt;This convenience function is equivalent to calling &lt;a href=&quot;QGraphicsView.html#fitInView(double, double, double, double, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;&lt;tt&gt;fitInView&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;aspectRadioMode&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#ensureVisible(com.trolltech.qt.gui.QGraphicsItemInterface, int, int)&quot;&gt;&lt;tt&gt;ensureVisible&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#centerOn(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;centerOn&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void fitInView(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#fitInView(double, double, double, double, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;&lt;tt&gt;fitInView&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::IgnoreAspectRatio). */"/>
    <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;This property sets the foreground brush for the scene in this view. It is used to override the scene's own foreground, and defines the behavior of &lt;a href=&quot;QGraphicsView.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 provide custom foreground drawing for this view, you can reimplement &lt;a href=&quot;QGraphicsView.html#drawForeground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawForeground&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setForegroundBrush(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setForegroundBrush&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsScene::foregroundBrush&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsView.html#backgroundBrush()&quot;&gt;&lt;tt&gt;backgroundBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void invalidateScene(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.gui.QGraphicsScene.SceneLayers layers)" doc="/**
&lt;p&gt;Invalidates and schedules a redraw of &lt;tt&gt;layers&lt;/tt&gt; inside &lt;tt&gt;rect&lt;/tt&gt;. &lt;tt&gt;rect&lt;/tt&gt; is in scene coordinates. Any cached content for &lt;tt&gt;layers&lt;/tt&gt; inside &lt;tt&gt;rect&lt;/tt&gt; is unconditionally invalidated and redrawn.&lt;/p&gt;
&lt;p&gt;You can call this function to notify &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; of changes to the background or the foreground of the scene. It is commonly used for scenes with tile-based backgrounds to notify changes when &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; has enabled background caching.&lt;/p&gt;
&lt;p&gt;Note that &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; currently supports background caching only (see QGraphicsView::CacheBackground). This function is equivalent to calling &lt;a href=&quot;QWidget.html#update()&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; if any layer but QGraphicsScene::BackgroundLayer is passed.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsScene::invalidate&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#update()&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void invalidateScene(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#invalidateScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QGraphicsScene.SceneLayers)&quot;&gt;&lt;tt&gt;invalidateScene&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, QGraphicsScene::AllLayers). */"/>
    <method name="public final void invalidateScene()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#invalidateScene(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QGraphicsScene.SceneLayers)&quot;&gt;&lt;tt&gt;invalidateScene&lt;/tt&gt;&lt;/a&gt;(QRectF(), QGraphicsScene::AllLayers). */"/>
    <method name="public final boolean isInteractive()" doc="/**
&lt;p&gt;Returns whether the view allowed scene interaction..&lt;/p&gt;
&lt;p&gt;If enabled, this view is set to allow scene interaction. Otherwise, this view will not allow interaction, and any mouse or key events are ignored (i.e&amp;#x2e;, it will act as a read-only view).&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsItemInterface itemAt(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;Returns the item at position &lt;tt&gt;pos&lt;/tt&gt;, which is in viewport coordinates. If there are several items at this position, this function returns the topmost item.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    void CustomView::mousePressEvent(QMouseEvent *event)
    {
        if (QGraphicsItem *item = itemAt(event-&amp;gt;pos())) {
            qDebug() &amp;lt;&amp;lt; &amp;quot;You clicked on item&amp;quot; &amp;lt;&amp;lt; item;
        } else {
            qDebug() &amp;lt;&amp;lt; &amp;quot;You didn't click on an item.&amp;quot;;
        }
    }&lt;/pre&gt;

@see &lt;a href=&quot;QGraphicsView.html#items(int, int, int, int, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsItemInterface itemAt(int x, int y)" doc="/**
&lt;p&gt;This function is provided for convenience. It's equivalent to calling &lt;a href=&quot;QGraphicsView.html#itemAt(int, int)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;%2E%2E/core/QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;)).&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(com.trolltech.qt.core.QRect rect, com.trolltech.qt.core.Qt.ItemSelectionMode mode)" doc="/**
&lt;p&gt;Returns a list of all the items that, depending on &lt;tt&gt;mode&lt;/tt&gt;, are either contained by or intersect with &lt;tt&gt;rect&lt;/tt&gt;. &lt;tt&gt;rect&lt;/tt&gt; is in viewport coordinates.&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;QGraphicsView.html#itemAt(int, int)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#items(int, int, int, int, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&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.QRect rect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#items(int, int, int, int, 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 java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(com.trolltech.qt.gui.QPolygon polygon, com.trolltech.qt.core.Qt.ItemSelectionMode mode)" doc="/**
&lt;p&gt;Returns a list of all the items that, depending on &lt;tt&gt;mode&lt;/tt&gt;, are either contained by or intersect with &lt;tt&gt;polygon&lt;/tt&gt;. &lt;tt&gt;polygon&lt;/tt&gt; is in viewport coordinates.&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;QGraphicsView.html#itemAt(int, int)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#items(int, int, int, int, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&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.QPolygon polygon)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#items(int, int, int, int, 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.QPoint pos)" doc="/**
&lt;p&gt;Returns a list of all the items at the position &lt;tt&gt;pos&lt;/tt&gt; in the view. 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;tt&gt;pos&lt;/tt&gt; is in viewport coordinates.&lt;/p&gt;
&lt;p&gt;This function is most commonly called from within mouse event handlers in a subclass in &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;. &lt;tt&gt;pos&lt;/tt&gt; is in untransformed viewport coordinates, just like QMouseEvent::pos().&lt;/p&gt;
&lt;pre&gt;    void CustomView::mousePressEvent(QMouseEvent *event)
    {
        qDebug() &amp;lt;&amp;lt; &amp;quot;There are&amp;quot; &amp;lt;&amp;lt; items(event-&amp;gt;pos()).size()
                 &amp;lt;&amp;lt; &amp;quot;items at position&amp;quot; &amp;lt;&amp;lt; mapToScene(event-&amp;gt;pos());
    }&lt;/pre&gt;

@see &lt;tt&gt;QGraphicsScene::items&lt;/tt&gt;
@see &lt;tt&gt;QGraphicsItem::zValue&lt;/tt&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 a list of all the items that, depending on &lt;tt&gt;mode&lt;/tt&gt;, are either contained by or intersect with &lt;tt&gt;path&lt;/tt&gt;. &lt;tt&gt;path&lt;/tt&gt; is in viewport coordinates.&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;QGraphicsView.html#itemAt(int, int)&quot;&gt;&lt;tt&gt;itemAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#items(int, int, int, int, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&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;QGraphicsView.html#items(int, int, int, int, 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(int x, int y)" doc="/**
&lt;p&gt;This function is provided for convenience. It's equivalent to calling items(&lt;a href=&quot;%2E%2E/core/QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;)).&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items()" doc="/**
&lt;p&gt;Returns a list of all the items in the associated scene.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsScene::items&lt;/tt&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QGraphicsItemInterface&gt; items(int x, int y, int w, int 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(int x, int y, int w, int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#items(int, int, int, int, 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 com.trolltech.qt.core.QPoint mapFromScene(double x, double y)" doc="/**
&lt;p&gt;This function is provided for convenience. It's equivalent to calling &lt;a href=&quot;QGraphicsView.html#mapFromScene(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;mapFromScene&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;%2E%2E/core/QPointF.html&quot;&gt;&lt;tt&gt;QPointF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;)).&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPolygon mapFromScene(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Returns the scene rectangle &lt;tt&gt;rect&lt;/tt&gt; to a viewport coordinate polygon.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPolygon mapFromScene(com.trolltech.qt.gui.QPolygonF polygon)" doc="/**
&lt;p&gt;Returns the scene coordinate polygon &lt;tt&gt;polygon&lt;/tt&gt; to a viewport coordinate polygon.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPolygon mapFromScene(double x, double y, double w, double h)" doc="/**
&lt;p&gt;This function is provided for convenience. It's equivalent to calling &lt;a href=&quot;QGraphicsView.html#mapFromScene(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;mapFromScene&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;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath mapFromScene(com.trolltech.qt.gui.QPainterPath path)" doc="/**
&lt;p&gt;Returns the scene coordinate painter path &lt;tt&gt;path&lt;/tt&gt; to a viewport coordinate painter path.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint mapFromScene(com.trolltech.qt.core.QPointF point)" doc="/**
&lt;p&gt;Returns the scene coordinate &lt;tt&gt;point&lt;/tt&gt; to viewport coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath mapToScene(com.trolltech.qt.gui.QPainterPath path)" doc="/**
&lt;p&gt;Returns the viewport painter path &lt;tt&gt;path&lt;/tt&gt; mapped to a scene coordinate painter path.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#mapFromScene(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;mapFromScene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPolygonF mapToScene(int x, int y, int w, int h)" doc="/**
&lt;p&gt;This function is provided for convenience. It's equivalent to calling &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&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 com.trolltech.qt.gui.QPolygonF mapToScene(com.trolltech.qt.gui.QPolygon polygon)" doc="/**
&lt;p&gt;Returns the viewport polygon &lt;tt&gt;polygon&lt;/tt&gt; mapped to a scene coordinate polygon.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#mapFromScene(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;mapFromScene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPolygonF mapToScene(com.trolltech.qt.core.QRect rect)" doc="/**
&lt;p&gt;Returns the viewport rectangle &lt;tt&gt;rect&lt;/tt&gt; mapped to a scene coordinate polygon.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#mapFromScene(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;mapFromScene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPointF mapToScene(com.trolltech.qt.core.QPoint point)" doc="/**
&lt;p&gt;Returns the viewport coordinate &lt;tt&gt;point&lt;/tt&gt; mapped to scene coordinates.&lt;/p&gt;
&lt;p&gt;Note: It can be useful to map the whole rectangle covered by the pixel at &lt;tt&gt;point&lt;/tt&gt; instead of the point itself. To do this, you can call &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;point&lt;/tt&gt;, &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(2, 2))).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#mapFromScene(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;mapFromScene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPointF mapToScene(int x, int y)" doc="/**
&lt;p&gt;This function is provided for convenience. It's equivalent to calling &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;%2E%2E/core/QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;)).&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QMatrix matrix()" doc="/**
&lt;p&gt;Returns the current transformation matrix for the view. If no current transformation is set, the identity matrix is returned.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setMatrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsView.OptimizationFlags optimizationFlags()" doc="/**
&lt;p&gt;Returns flags that can be used to tune &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;'s performance..&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; uses clipping, extra bounding rect adjustments, and certain other aids to improve rendering quality and performance for the common case graphics scene. However, depending on the target platform, the scene, and the viewport in use, some of these operations can degrade performance.&lt;/p&gt;
&lt;p&gt;The effect varies from flag to flag; see the OptimizationFlags documentation for details.&lt;/p&gt;
&lt;p&gt;By default, no optimization flags are enabled.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setOptimizationFlags(com.trolltech.qt.gui.QGraphicsView.OptimizationFlags)&quot;&gt;&lt;tt&gt;setOptimizationFlags&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#setOptimizationFlag(com.trolltech.qt.gui.QGraphicsView.OptimizationFlag, boolean)&quot;&gt;&lt;tt&gt;setOptimizationFlag&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.QRect source, com.trolltech.qt.core.Qt.AspectRatioMode aspectRatioMode)" doc="/**
&lt;p&gt;Renders the &lt;tt&gt;source&lt;/tt&gt; rect, which is in view coordinates, from the scene into &lt;tt&gt;target&lt;/tt&gt;, which is in paint device coordinates, using &lt;tt&gt;painter&lt;/tt&gt;. This function is useful for capturing the contents of the view 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 to &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(...
    ...

    QGraphicsView view(&amp;amp;scene);
    view.show();
    ...

    QPrinter printer(QPrinter::HighResolution);
    printer.setPageSize(QPrinter::A4);
    QPainter painter(&amp;amp;printer);

&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; print, fitting the viewport contents into a full page
    view.render(&amp;amp;painter);

&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; print the upper half of the viewport into the lower.
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; half of the page.
    QRect viewport = view.viewport()-&amp;gt;rect();
    view.render(&amp;amp;painter,
                QRectF(0, printer.height() / 2,
                       printer.width(), printer.height() / 2),
                viewport.adjusted(0, 0, 0, -viewport.height() / 2));&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;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt;-&amp;gt;&lt;a href=&quot;QWidget.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt; to determine what to draw. If &lt;tt&gt;target&lt;/tt&gt; is a null rect, the full dimensions of &lt;tt&gt;painter&lt;/tt&gt;'s paint device (e.g&amp;#x2e;, for a &lt;a href=&quot;QPrinter.html&quot;&gt;&lt;tt&gt;QPrinter&lt;/tt&gt;&lt;/a&gt;, the page size) 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;QGraphicsScene::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.QRect source)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#render(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QRect, 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;QGraphicsView.html#render(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QRect, 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;, QRect(), Qt::KeepAspectRatio). */"/>
    <method name="public final void render(com.trolltech.qt.gui.QPainter painter)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#render(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF, com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;render&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, QRectF(), QRect(), Qt::KeepAspectRatio). */"/>
    <method name="public final com.trolltech.qt.gui.QPainter.RenderHints renderHints()" doc="/**
&lt;p&gt;Returns the default render hints for the view.&lt;/p&gt;
&lt;p&gt;These hints are used to initialize &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; before each visible item is drawn. &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; uses render hints to toggle rendering features such as antialiasing and smooth pixmap transformation.&lt;/p&gt;
&lt;p&gt;QPainter::TextAntialiasing is enabled by default.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsScene scene;
    scene.addRect(QRectF(-10, -10, 20, 20));

    QGraphicsView view(&amp;amp;scene);
    view.setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
    view.show();&lt;/pre&gt;

@see &lt;a href=&quot;QGraphicsView.html#setRenderHints(com.trolltech.qt.gui.QPainter.RenderHints)&quot;&gt;&lt;tt&gt;setRenderHints&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void resetCachedContent()" doc="/**
&lt;p&gt;Resets any cached content. Calling this function will clear &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;'s cache. If the current cache mode is &lt;a href=&quot;QGraphicsView.html#CacheModeFlag-enum&quot;&gt;&lt;tt&gt;CacheNone&lt;/tt&gt;&lt;/a&gt;, this function does nothing.&lt;/p&gt;
&lt;p&gt;This function is called automatically for you when the &lt;a href=&quot;QGraphicsView.html#backgroundBrush()&quot;&gt;&lt;tt&gt;backgroundBrush&lt;/tt&gt;&lt;/a&gt; or QGraphicsScene::backgroundBrush properties change; you only need to call this function if you have reimplemented QGraphicsScene::drawBackground() or QGraphicsView::drawBackground() to draw a custom background, and need to trigger a full redraw.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#cacheMode()&quot;&gt;&lt;tt&gt;cacheMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void resetMatrix()" doc="/**
&lt;p&gt;Resets the view transformation matrix to the identity matrix.&lt;/p&gt;
 */"/>
    <method name="public final void resetTransform()" doc="/**
&lt;p&gt;Resets the view transformation to the identity matrix.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#transform()&quot;&gt;&lt;tt&gt;transform&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#setTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setTransform&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsView.ViewportAnchor resizeAnchor()" doc="/**
&lt;p&gt;Returns how the view should position the scene when the view is resized..&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; uses this property to decide how to position the scene in the viewport when the viewport widget's size changes. The default behavior, &lt;a href=&quot;QGraphicsView.html#ViewportAnchor-enum&quot;&gt;&lt;tt&gt;NoAnchor&lt;/tt&gt;&lt;/a&gt;, leaves the scene's position unchanged during a resize; the top-left corner of the view will appear to be anchored while resizing.&lt;/p&gt;
&lt;p&gt;Note that the effect of this property is noticeable when only a part of the scene is visible (i.e&amp;#x2e;, when there are scroll bars). Otherwise, if the whole scene fits in the view, &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; uses the view &lt;a href=&quot;QGraphicsView.html#alignment()&quot;&gt;alignment&lt;/tt&gt;&lt;/a&gt; to position the scene in the view.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setResizeAnchor(com.trolltech.qt.gui.QGraphicsView.ViewportAnchor)&quot;&gt;&lt;tt&gt;setResizeAnchor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#alignment()&quot;&gt;alignment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#transformationAnchor()&quot;&gt;&lt;tt&gt;transformationAnchor&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::WNorthWestGravity&lt;/tt&gt; */"/>
    <method name="public final void rotate(double angle)" doc="/**
&lt;p&gt;Rotates the current view transformation &lt;tt&gt;angle&lt;/tt&gt; degrees clockwise.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setMatrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#matrix()&quot;&gt;&lt;tt&gt;matrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.ItemSelectionMode rubberBandSelectionMode()" doc="/**
&lt;p&gt;Returns the behavior for selecting items with a rubber band selection rectangle..&lt;/p&gt;
&lt;p&gt;This property defines how items are selected when using the &lt;a href=&quot;QGraphicsView.html#DragMode-enum&quot;&gt;&lt;tt&gt;RubberBandDrag&lt;/tt&gt;&lt;/a&gt; drag mode.&lt;/p&gt;
&lt;p&gt;The default value is Qt::IntersectsItemShape; all items whose shape intersects with or is contained by the rubber band are selected.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setRubberBandSelectionMode(com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;setRubberBandSelectionMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#dragMode()&quot;&gt;&lt;tt&gt;dragMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#items(int, int, int, int, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void scale(double sx, double sy)" doc="/**
&lt;p&gt;Scales the current view transformation by (&lt;tt&gt;sx&lt;/tt&gt;, &lt;tt&gt;sy&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setMatrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#matrix()&quot;&gt;&lt;tt&gt;matrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsScene scene()" doc="/**
&lt;p&gt;Returns a pointer to the scene that is currently visualized in the view. If no scene is currently visualized, 0 is returned.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setScene(com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;setScene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRectF sceneRect()" doc="/**
&lt;p&gt;Returns the area of the scene visualized by this view..&lt;/p&gt;
&lt;p&gt;The scene rect defines the extent of the scene, and in the view's case, this means the area of the scene that you can navigate using the scroll bars.&lt;/p&gt;
&lt;p&gt;If unset, or if a null &lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt; is set, this property has the same value as QGraphicsScene::sceneRect, and it changes with QGraphicsScene::sceneRect. Otherwise, the view's scene rect is unaffected by the scene.&lt;/p&gt;
&lt;p&gt;Note that although the scene supports a virtually unlimited size, the range of the scroll bars will never exceed the range of an integer (INT_MIN, INT_MAX). When the scene is larger than the scroll bars' values, you can choose to use &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; to navigate the scene instead.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setSceneRect(double, double, double, double)&quot;&gt;&lt;tt&gt;setSceneRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsScene::sceneRect&lt;/tt&gt; */"/>
    <method name="public final void setAlignment(com.trolltech.qt.core.Qt.Alignment alignment)" doc="/**
&lt;p&gt;Sets the alignment of the scene in the view when the whole scene is visible. to &lt;tt&gt;alignment&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the whole scene is visible in the view, (i.e&amp;#x2e;, there are no visible scroll bars,) the view's alignment will decide where the scene will be rendered in the view. For example, if the alignment is Qt::AlignCenter, which is default, the scene will be centered in the view, and if the alignment is (Qt::AlignLeft | Qt::AlignTop), the scene will be rendered in the top-left corner of the view.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#alignment()&quot;&gt;&lt;tt&gt;alignment&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;This property sets the background brush for the scene in this view. It is used to override the scene's own background, and defines the behavior of &lt;a href=&quot;QGraphicsView.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 provide custom background drawing for this view, you can reimplement &lt;a href=&quot;QGraphicsView.html#drawBackground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawBackground&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsScene::backgroundBrush&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsView.html#foregroundBrush()&quot;&gt;&lt;tt&gt;foregroundBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCacheMode(com.trolltech.qt.gui.QGraphicsView.CacheMode mode)" doc="/**
&lt;p&gt;Sets which parts of the view are cached to &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; can cache pre-rendered content in a &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;, which is then drawn onto the viewport. The purpose of such caching is to speed up the total rendering time for areas that are slow to render. Texture, gradient and alpha blended backgrounds, for example, can be notibly slow to render; especially with a transformed view. The &lt;a href=&quot;QGraphicsView.html#CacheModeFlag-enum&quot;&gt;&lt;tt&gt;CacheBackground&lt;/tt&gt;&lt;/a&gt; flag enables caching of the view's background. For example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsView view;
    view.setBackgroundBrush(QImage(&amp;quot;:/images/backgroundtile.png&amp;quot;));
    view.setCacheMode(QGraphicsView::CacheBackground);&lt;/pre&gt;
&lt;p&gt;The cache is invalidated every time the view is transformed. However, when scrolling, only partial invalidation is required.&lt;/p&gt;
&lt;p&gt;By default, nothing is cached.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#cacheMode()&quot;&gt;&lt;tt&gt;cacheMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#resetCachedContent()&quot;&gt;&lt;tt&gt;resetCachedContent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmapCache.html&quot;&gt;&lt;tt&gt;QPixmapCache&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDragMode(com.trolltech.qt.gui.QGraphicsView.DragMode mode)" doc="/**
&lt;p&gt;Sets the behavior for dragging the mouse over the scene while the left mouse button is pressed. to &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property defines what should happen when the user clicks on the scene background and drags the mouse (e.g&amp;#x2e;, scrolling the viewport contents using a pointing hand cursor, or selecting multiple items with a rubber band). The default value, &lt;a href=&quot;QGraphicsView.html#DragMode-enum&quot;&gt;&lt;tt&gt;NoDrag&lt;/tt&gt;&lt;/a&gt;, does nothing.&lt;/p&gt;
&lt;p&gt;This behavior only affects mouse clicks that are not handled by any item. You can define a custom behavior by creating a subclass of &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; and reimplementing &lt;a href=&quot;QGraphicsView.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#dragMode()&quot;&gt;&lt;tt&gt;dragMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <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;This property sets the foreground brush for the scene in this view. It is used to override the scene's own foreground, and defines the behavior of &lt;a href=&quot;QGraphicsView.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 provide custom foreground drawing for this view, you can reimplement &lt;a href=&quot;QGraphicsView.html#drawForeground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawForeground&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsScene::foregroundBrush&lt;/tt&gt;
@see &lt;a href=&quot;QGraphicsView.html#backgroundBrush()&quot;&gt;&lt;tt&gt;backgroundBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setInteractive(boolean allowed)" doc="/**
&lt;p&gt;Sets whether the view allowed scene interaction. to &lt;tt&gt;allowed&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If enabled, this view is set to allow scene interaction. Otherwise, this view will not allow interaction, and any mouse or key events are ignored (i.e&amp;#x2e;, it will act as a read-only view).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#isInteractive()&quot;&gt;&lt;tt&gt;isInteractive&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMatrix(com.trolltech.qt.gui.QMatrix matrix, boolean combine)" doc="/**
&lt;p&gt;Sets the view's current transformation matrix to &lt;tt&gt;matrix&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;combine&lt;/tt&gt; is true, then &lt;tt&gt;matrix&lt;/tt&gt; is combined with the current matrix; otherwise, &lt;tt&gt;matrix&lt;/tt&gt; &lt;i&gt;replaces&lt;/i&gt; the current matrix. &lt;tt&gt;combine&lt;/tt&gt; is false by default.&lt;/p&gt;
&lt;p&gt;The transformation matrix tranforms the scene into view coordinates. Using the default transformation, provided by the identity matrix, one pixel in the view represents one unit in the scene (e.g&amp;#x2e;, a 10x10 rectangular item is drawn using 10x10 pixels in the view). If a 2x2 scaling matrix is applied, the scene will be drawn in 1:2 (e.g&amp;#x2e;, a 10x10 rectangular item is then drawn using 20x20 pixels in the view).&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsScene scene;
    scene.addText(&amp;quot;GraphicsView rotated clockwise&amp;quot;);

    QGraphicsView view(&amp;amp;scene);
    view.rotate(90); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; the text is rendered with a 90 degree clockwise rotation
    view.show();&lt;/pre&gt;
&lt;p&gt;To simplify interation with items using a transformed view, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; provides &lt;a href=&quot;QWidget.html#mapTo(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapTo&lt;/tt&gt;&lt;/a&gt;... and &lt;a href=&quot;QWidget.html#mapFrom(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFrom&lt;/tt&gt;&lt;/a&gt;... functions that can translate between scene and view coordinates. For example, you can call &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt; to map a view coordinate to a floating point scene coordinate, or &lt;a href=&quot;QGraphicsView.html#mapFromScene(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;mapFromScene&lt;/tt&gt;&lt;/a&gt; to map from floating point scene coordinates to view coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#matrix()&quot;&gt;&lt;tt&gt;matrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMatrix(com.trolltech.qt.gui.QMatrix matrix)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#setMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setMatrix&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;matrix&lt;/tt&gt;, false). */"/>
    <method name="public final void setOptimizationFlag(com.trolltech.qt.gui.QGraphicsView.OptimizationFlag flag, boolean enabled)" doc="/**
&lt;p&gt;Enables &lt;tt&gt;flag&lt;/tt&gt; if &lt;tt&gt;enabled&lt;/tt&gt; is true; otherwise disables &lt;tt&gt;flag&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#optimizationFlags()&quot;&gt;&lt;tt&gt;optimizationFlags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setOptimizationFlag(com.trolltech.qt.gui.QGraphicsView.OptimizationFlag flag)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#setOptimizationFlag(com.trolltech.qt.gui.QGraphicsView.OptimizationFlag, boolean)&quot;&gt;&lt;tt&gt;setOptimizationFlag&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;flag&lt;/tt&gt;, true). */"/>
    <method name="public final void setOptimizationFlags(com.trolltech.qt.gui.QGraphicsView.OptimizationFlags flags)" doc="/**
&lt;p&gt;Sets flags that can be used to tune &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;'s performance. to &lt;tt&gt;flags&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; uses clipping, extra bounding rect adjustments, and certain other aids to improve rendering quality and performance for the common case graphics scene. However, depending on the target platform, the scene, and the viewport in use, some of these operations can degrade performance.&lt;/p&gt;
&lt;p&gt;The effect varies from flag to flag; see the OptimizationFlags documentation for details.&lt;/p&gt;
&lt;p&gt;By default, no optimization flags are enabled.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#optimizationFlags()&quot;&gt;&lt;tt&gt;optimizationFlags&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#setOptimizationFlag(com.trolltech.qt.gui.QGraphicsView.OptimizationFlag, boolean)&quot;&gt;&lt;tt&gt;setOptimizationFlag&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRenderHint(com.trolltech.qt.gui.QPainter.RenderHint hint, boolean enabled)" doc="/**
&lt;p&gt;If &lt;tt&gt;enabled&lt;/tt&gt; is true, the render hint &lt;tt&gt;hint&lt;/tt&gt; is enabled; otherwise it is disabled.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#renderHints()&quot;&gt;&lt;tt&gt;renderHints&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRenderHint(com.trolltech.qt.gui.QPainter.RenderHint hint)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#setRenderHint(com.trolltech.qt.gui.QPainter.RenderHint, boolean)&quot;&gt;&lt;tt&gt;setRenderHint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;hint&lt;/tt&gt;, true). */"/>
    <method name="public final void setRenderHints(com.trolltech.qt.gui.QPainter.RenderHints hints)" doc="/**
&lt;p&gt;Sets the default render hints for the view to &lt;tt&gt;hints&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;These hints are used to initialize &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; before each visible item is drawn. &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; uses render hints to toggle rendering features such as antialiasing and smooth pixmap transformation.&lt;/p&gt;
&lt;p&gt;QPainter::TextAntialiasing is enabled by default.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsScene scene;
    scene.addRect(QRectF(-10, -10, 20, 20));

    QGraphicsView view(&amp;amp;scene);
    view.setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
    view.show();&lt;/pre&gt;

@see &lt;a href=&quot;QGraphicsView.html#renderHints()&quot;&gt;&lt;tt&gt;renderHints&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setResizeAnchor(com.trolltech.qt.gui.QGraphicsView.ViewportAnchor anchor)" doc="/**
&lt;p&gt;Sets how the view should position the scene when the view is resized. to &lt;tt&gt;anchor&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; uses this property to decide how to position the scene in the viewport when the viewport widget's size changes. The default behavior, &lt;a href=&quot;QGraphicsView.html#ViewportAnchor-enum&quot;&gt;&lt;tt&gt;NoAnchor&lt;/tt&gt;&lt;/a&gt;, leaves the scene's position unchanged during a resize; the top-left corner of the view will appear to be anchored while resizing.&lt;/p&gt;
&lt;p&gt;Note that the effect of this property is noticeable when only a part of the scene is visible (i.e&amp;#x2e;, when there are scroll bars). Otherwise, if the whole scene fits in the view, &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; uses the view &lt;a href=&quot;QGraphicsView.html#alignment()&quot;&gt;alignment&lt;/tt&gt;&lt;/a&gt; to position the scene in the view.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#resizeAnchor()&quot;&gt;&lt;tt&gt;resizeAnchor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#alignment()&quot;&gt;alignment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#transformationAnchor()&quot;&gt;&lt;tt&gt;transformationAnchor&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::WNorthWestGravity&lt;/tt&gt; */"/>
    <method name="public final void setRubberBandSelectionMode(com.trolltech.qt.core.Qt.ItemSelectionMode mode)" doc="/**
&lt;p&gt;Sets the behavior for selecting items with a rubber band selection rectangle. to &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property defines how items are selected when using the &lt;a href=&quot;QGraphicsView.html#DragMode-enum&quot;&gt;&lt;tt&gt;RubberBandDrag&lt;/tt&gt;&lt;/a&gt; drag mode.&lt;/p&gt;
&lt;p&gt;The default value is Qt::IntersectsItemShape; all items whose shape intersects with or is contained by the rubber band are selected.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#rubberBandSelectionMode()&quot;&gt;&lt;tt&gt;rubberBandSelectionMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#dragMode()&quot;&gt;&lt;tt&gt;dragMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#items(int, int, int, int, com.trolltech.qt.core.Qt.ItemSelectionMode)&quot;&gt;&lt;tt&gt;items&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setScene(com.trolltech.qt.gui.QGraphicsScene scene)" doc="/**
&lt;p&gt;Sets the current scene to &lt;tt&gt;scene&lt;/tt&gt;. If &lt;tt&gt;scene&lt;/tt&gt; is already being viewed, this function does nothing.&lt;/p&gt;
&lt;p&gt;When a scene is set on a view, the QGraphicsScene::changed() signal is automatically connected to this view's &lt;a href=&quot;QGraphicsView.html#updateScene(java.util.List&lt;com.trolltech.qt.core.QRectF&gt;)&quot;&gt;&lt;tt&gt;updateScene&lt;/tt&gt;&lt;/a&gt; slot, and the view's scroll bars are adjusted to fit the size of the scene.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#scene()&quot;&gt;&lt;tt&gt;scene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSceneRect(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Sets the area of the scene visualized by this view. to &lt;tt&gt;rect&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The scene rect defines the extent of the scene, and in the view's case, this means the area of the scene that you can navigate using the scroll bars.&lt;/p&gt;
&lt;p&gt;If unset, or if a null &lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt; is set, this property has the same value as QGraphicsScene::sceneRect, and it changes with QGraphicsScene::sceneRect. Otherwise, the view's scene rect is unaffected by the scene.&lt;/p&gt;
&lt;p&gt;Note that although the scene supports a virtually unlimited size, the range of the scroll bars will never exceed the range of an integer (INT_MIN, INT_MAX). When the scene is larger than the scroll bars' values, you can choose to use &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; to navigate the scene instead.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsScene::sceneRect&lt;/tt&gt; */"/>
    <method name="public final void setSceneRect(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Sets the area of the scene visualized by this view..&lt;/p&gt;
&lt;p&gt;The scene rect defines the extent of the scene, and in the view's case, this means the area of the scene that you can navigate using the scroll bars.&lt;/p&gt;
&lt;p&gt;If unset, or if a null &lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt; is set, this property has the same value as QGraphicsScene::sceneRect, and it changes with QGraphicsScene::sceneRect. Otherwise, the view's scene rect is unaffected by the scene.&lt;/p&gt;
&lt;p&gt;Note that although the scene supports a virtually unlimited size, the range of the scroll bars will never exceed the range of an integer (INT_MIN, INT_MAX). When the scene is larger than the scroll bars' values, you can choose to use &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; to navigate the scene instead.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsScene::sceneRect&lt;/tt&gt; */"/>
    <method name="public final void setTransform(com.trolltech.qt.gui.QTransform matrix, boolean combine)" doc="/**
&lt;p&gt;Sets the view's current transformation matrix to &lt;tt&gt;matrix&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;combine&lt;/tt&gt; is true, then &lt;tt&gt;matrix&lt;/tt&gt; is combined with the current matrix; otherwise, &lt;tt&gt;matrix&lt;/tt&gt; &lt;i&gt;replaces&lt;/i&gt; the current matrix. &lt;tt&gt;combine&lt;/tt&gt; is false by default.&lt;/p&gt;
&lt;p&gt;The transformation matrix tranforms the scene into view coordinates. Using the default transformation, provided by the identity matrix, one pixel in the view represents one unit in the scene (e.g&amp;#x2e;, a 10x10 rectangular item is drawn using 10x10 pixels in the view). If a 2x2 scaling matrix is applied, the scene will be drawn in 1:2 (e.g&amp;#x2e;, a 10x10 rectangular item is then drawn using 20x20 pixels in the view).&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGraphicsScene scene;
    scene.addText(&amp;quot;GraphicsView rotated clockwise&amp;quot;);

    QGraphicsView view(&amp;amp;scene);
    view.rotate(90); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; the text is rendered with a 90 degree clockwise rotation
    view.show();&lt;/pre&gt;
&lt;p&gt;To simplify interation with items using a transformed view, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; provides &lt;a href=&quot;QWidget.html#mapTo(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapTo&lt;/tt&gt;&lt;/a&gt;... and &lt;a href=&quot;QWidget.html#mapFrom(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFrom&lt;/tt&gt;&lt;/a&gt;... functions that can translate between scene and view coordinates. For example, you can call &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt; to map a view coordiate to a floating point scene coordinate, or &lt;a href=&quot;QGraphicsView.html#mapFromScene(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;mapFromScene&lt;/tt&gt;&lt;/a&gt; to map from floating point scene coordinates to view coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#transform()&quot;&gt;&lt;tt&gt;transform&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTransform(com.trolltech.qt.gui.QTransform matrix)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsView.html#setTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setTransform&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;matrix&lt;/tt&gt;, false). */"/>
    <method name="public final void setTransformationAnchor(com.trolltech.qt.gui.QGraphicsView.ViewportAnchor anchor)" doc="/**
&lt;p&gt;Sets how the view should position the scene during transformations. to &lt;tt&gt;anchor&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; uses this property to decide how to position the scene in the viewport when the transformation matrix changes, and the coordinate system of the view is transformed. The default behavior, &lt;a href=&quot;QGraphicsView.html#ViewportAnchor-enum&quot;&gt;&lt;tt&gt;AnchorViewCenter&lt;/tt&gt;&lt;/a&gt;, ensures that the scene point at the center of the view remains unchanged during transformations (e.g&amp;#x2e;, when rotating, the scene will appear to rotate around the center of the view).&lt;/p&gt;
&lt;p&gt;Note that the effect of this property is noticeable when only a part of the scene is visible (i.e&amp;#x2e;, when there are scroll bars). Otherwise, if the whole scene fits in the view, &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; uses the view &lt;a href=&quot;QGraphicsView.html#alignment()&quot;&gt;alignment&lt;/tt&gt;&lt;/a&gt; to position the scene in the view.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#transformationAnchor()&quot;&gt;&lt;tt&gt;transformationAnchor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#alignment()&quot;&gt;alignment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#resizeAnchor()&quot;&gt;&lt;tt&gt;resizeAnchor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setViewportUpdateMode(com.trolltech.qt.gui.QGraphicsView.ViewportUpdateMode mode)" doc="/**
&lt;p&gt;Sets how the viewport should update its contents. to &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; uses this property to decide how to update areas of the scene that have been reexposed or changed. Usually you do not need to modify this property, but there are some cases where doing so can improve rendering performance. See the &lt;a href=&quot;QGraphicsView.html#ViewportUpdateMode-enum&quot;&gt;&lt;tt&gt;ViewportUpdateMode&lt;/tt&gt;&lt;/a&gt; documentation for specific details.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QGraphicsView.html#ViewportUpdateMode-enum&quot;&gt;&lt;tt&gt;MinimalViewportUpdate&lt;/tt&gt;&lt;/a&gt;, where &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will update as small an area of the viewport as possible when the contents change.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#viewportUpdateMode()&quot;&gt;&lt;tt&gt;viewportUpdateMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#ViewportUpdateMode-enum&quot;&gt;&lt;tt&gt;ViewportUpdateMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#cacheMode()&quot;&gt;&lt;tt&gt;cacheMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void setupViewport(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;This slot is called by &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; after &lt;a href=&quot;QAbstractScrollArea.html#setViewport(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt; has been called. Reimplement this function in a subclass of &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; to initialize the new viewport &lt;tt&gt;widget&lt;/tt&gt; before it is used.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#setViewport(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void shear(double sh, double sv)" doc="/**
&lt;p&gt;Shears the current view transformation by (&lt;tt&gt;sh&lt;/tt&gt;, &lt;tt&gt;sv&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setMatrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#matrix()&quot;&gt;&lt;tt&gt;matrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTransform transform()" doc="/**
&lt;p&gt;Returns the current transformation matrix for the view. If no current transformation is set, the identity matrix is returned.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setTransform&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsView.ViewportAnchor transformationAnchor()" doc="/**
&lt;p&gt;Returns how the view should position the scene during transformations..&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; uses this property to decide how to position the scene in the viewport when the transformation matrix changes, and the coordinate system of the view is transformed. The default behavior, &lt;a href=&quot;QGraphicsView.html#ViewportAnchor-enum&quot;&gt;&lt;tt&gt;AnchorViewCenter&lt;/tt&gt;&lt;/a&gt;, ensures that the scene point at the center of the view remains unchanged during transformations (e.g&amp;#x2e;, when rotating, the scene will appear to rotate around the center of the view).&lt;/p&gt;
&lt;p&gt;Note that the effect of this property is noticeable when only a part of the scene is visible (i.e&amp;#x2e;, when there are scroll bars). Otherwise, if the whole scene fits in the view, &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt; uses the view &lt;a href=&quot;QGraphicsView.html#alignment()&quot;&gt;alignment&lt;/tt&gt;&lt;/a&gt; to position the scene in the view.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setTransformationAnchor(com.trolltech.qt.gui.QGraphicsView.ViewportAnchor)&quot;&gt;&lt;tt&gt;setTransformationAnchor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#alignment()&quot;&gt;alignment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#resizeAnchor()&quot;&gt;&lt;tt&gt;resizeAnchor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void translate(double dx, double dy)" doc="/**
&lt;p&gt;Translates the current view transformation by (&lt;tt&gt;dx&lt;/tt&gt;, &lt;tt&gt;dy&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setMatrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#matrix()&quot;&gt;&lt;tt&gt;matrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void updateScene(java.util.List&lt;com.trolltech.qt.core.QRectF&gt; rects)" doc="/**
&lt;p&gt;Schedules an update of the scene rectangles &lt;tt&gt;rects&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsScene::changed&lt;/tt&gt; */"/>
    <method name="public final void updateSceneRect(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Notifies &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; that the scene's scene rect has changed. &lt;tt&gt;rect&lt;/tt&gt; is the new scene rect. If the view already has an explicitly set scene rect, this function does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#sceneRect()&quot;&gt;&lt;tt&gt;sceneRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsScene::sceneRectChanged&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTransform viewportTransform()" doc="/**
&lt;p&gt;Returns a matrix that maps viewport coordinates to scene coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#mapToScene(int, int)&quot;&gt;&lt;tt&gt;mapToScene&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#mapFromScene(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;mapFromScene&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsView.ViewportUpdateMode viewportUpdateMode()" doc="/**
&lt;p&gt;Returns how the viewport should update its contents..&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; uses this property to decide how to update areas of the scene that have been reexposed or changed. Usually you do not need to modify this property, but there are some cases where doing so can improve rendering performance. See the &lt;a href=&quot;QGraphicsView.html#ViewportUpdateMode-enum&quot;&gt;&lt;tt&gt;ViewportUpdateMode&lt;/tt&gt;&lt;/a&gt; documentation for specific details.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QGraphicsView.html#ViewportUpdateMode-enum&quot;&gt;&lt;tt&gt;MinimalViewportUpdate&lt;/tt&gt;&lt;/a&gt;, where &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will update as small an area of the viewport as possible when the contents change.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#setViewportUpdateMode(com.trolltech.qt.gui.QGraphicsView.ViewportUpdateMode)&quot;&gt;&lt;tt&gt;setViewportUpdateMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#ViewportUpdateMode-enum&quot;&gt;&lt;tt&gt;ViewportUpdateMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#cacheMode()&quot;&gt;&lt;tt&gt;cacheMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void dragEnterEvent(com.trolltech.qt.gui.QDragEnterEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void dragLeaveEvent(com.trolltech.qt.gui.QDragLeaveEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void dragMoveEvent(com.trolltech.qt.gui.QDragMoveEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&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 this view.&lt;/p&gt;
&lt;p&gt;If all you want is to define a color, texture or gradient for the background, you can call &lt;a href=&quot;QGraphicsView.html#setBackgroundBrush(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBackgroundBrush&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
&lt;p&gt;All painting is done in &lt;i&gt;scene&lt;/i&gt; coordinates. &lt;tt&gt;rect&lt;/tt&gt; is the exposed rectangle.&lt;/p&gt;
&lt;p&gt;The default implementation fills &lt;tt&gt;rect&lt;/tt&gt; using the view's &lt;a href=&quot;QGraphicsView.html#backgroundBrush()&quot;&gt;&lt;tt&gt;backgroundBrush&lt;/tt&gt;&lt;/a&gt;. If no such brush is defined (the default), the scene's &lt;a href=&quot;QGraphicsView.html#drawBackground(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawBackground&lt;/tt&gt;&lt;/a&gt; function is called instead.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.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;tt&gt;QGraphicsScene::drawBackground&lt;/tt&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 are drawn. Reimplement this function to provide a custom foreground for this view.&lt;/p&gt;
&lt;p&gt;If all you want is to define a color, texture or gradient for the foreground, you can call &lt;a href=&quot;QGraphicsView.html#setForegroundBrush(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setForegroundBrush&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
&lt;p&gt;All painting is done in &lt;i&gt;scene&lt;/i&gt; coordinates. &lt;tt&gt;rect&lt;/tt&gt; is the exposed rectangle.&lt;/p&gt;
&lt;p&gt;The default implementation fills &lt;tt&gt;rect&lt;/tt&gt; using the view's &lt;a href=&quot;QGraphicsView.html#foregroundBrush()&quot;&gt;&lt;tt&gt;foregroundBrush&lt;/tt&gt;&lt;/a&gt;. If no such brush is defined (the default), the scene's &lt;a href=&quot;QGraphicsView.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 is called instead.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.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;tt&gt;QGraphicsScene::drawForeground&lt;/tt&gt; */"/>
    <method name="protected 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;QGraphicsView.html#drawItems(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QGraphicsItemInterface[], com.trolltech.qt.gui.QStyleOptionGraphicsItem[])&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;, ). */"/>
    <method name="protected void dropEvent(com.trolltech.qt.gui.QDropEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void focusInEvent(com.trolltech.qt.gui.QFocusEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void focusOutEvent(com.trolltech.qt.gui.QFocusEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void inputMethodEvent(com.trolltech.qt.gui.QInputMethodEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public java.lang.Object inputMethodQuery(com.trolltech.qt.core.Qt.InputMethodQuery query)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void keyPressEvent(com.trolltech.qt.gui.QKeyEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mousePressEvent(com.trolltech.qt.gui.QMouseEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void scrollContentsBy(int dx, int dy)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void showEvent(com.trolltech.qt.gui.QShowEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected boolean viewportEvent(com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void wheelEvent(com.trolltech.qt.gui.QWheelEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <enum name="OptimizationFlag" doc="/**
&lt;p&gt;This enum describes flags that you can enable to improve rendering performance in &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;. By default, none of these flags are set. Note that setting a flag usually imposes a side effect, and this effect can vary between paint devices and platforms.&lt;/p&gt;
 */">
        <enum-value name="DontClipPainter" doc="/**
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; sometimes clips the painter when rendering the scene contents. This can generally improve performance (e.g&amp;#x2e;, rendering only small parts of a large pixmap), and protects against rendering mistakes (e.g&amp;#x2e;, drawing outside bounding rectangles, or outside the exposed area). In some situations, however, the painter clip can slow down rendering; especially when all painting is restricted to inside exposed areas. By enabling this flag, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will completely disable its implicit clipping. Note that rendering artifacts from using a semi-transparent foreground or background brush can occur if clipping is disabled.&lt;/p&gt;
 */"/>
        <enum-value name="DontSavePainterState" doc="/**
&lt;p&gt;When rendering, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; protects the painter state (see QPainter::save()) when rendering the background or foreground, and when rendering each item. This allows you to leave the painter in an altered state (i.e&amp;#x2e;, you can call QPainter::setPen() or QPainter::setBrush() without restoring the state after painting). However, if the items consistently do restore the state, you should enable this flag to prevent &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; from doing the same.&lt;/p&gt;
 */"/>
        <enum-value name="DontAdjustForAntialiasing" doc="/**
&lt;p&gt;Disables &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;'s antialiasing auto-adjustment of exposed areas. Items that render antialiased lines on the boundaries of their QGraphicsItem::boundingRect() can end up rendering parts of the line outside. To prevent rendering artifacts, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; expands all exposed regions by 2 pixels in all directions. If you enable this flag, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will no longer perform these adjustments, minimizing the areas that require redrawing, which improves performance. A common side effect is that items that do draw with antialiasing can leave painting traces behind on the scene as they are moved.&lt;/p&gt;
 */"/>
</enum>
    <enum name="ViewportAnchor" doc="/**
&lt;p&gt;This enums describe the possible anchors that &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; can use when the user resizes the view or when the view is transformed.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#resizeAnchor()&quot;&gt;&lt;tt&gt;resizeAnchor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsView.html#transformationAnchor()&quot;&gt;&lt;tt&gt;transformationAnchor&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="NoAnchor" doc="/**
&lt;p&gt;No anchor, i.e&amp;#x2e; the view leaves the scene's position unchanged.&lt;/p&gt;
 */"/>
        <enum-value name="AnchorViewCenter" doc="/**
&lt;p&gt;The scene point at the center of the view is used as the anchor.&lt;/p&gt;
 */"/>
        <enum-value name="AnchorUnderMouse" doc="/**
&lt;p&gt;The point under the mouse is used as the anchor.&lt;/p&gt;
 */"/>
</enum>
    <enum name="ViewportUpdateMode" doc="/**
&lt;p&gt;This enum describes how &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; updates its viewport when the scene contents change or are exposed.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#viewportUpdateMode()&quot;&gt;&lt;tt&gt;viewportUpdateMode&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="FullViewportUpdate" doc="/**
&lt;p&gt;When any visible part of the scene changes or is reexposed, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will update the entire viewport. This approach is fastest when &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; spends more time figuring out what to draw than it would spend drawing (e.g&amp;#x2e;, when very many small items are repeatedly updated). This is the preferred update mode for viewports that do not support partial updates, such as &lt;a href=&quot;%2E%2E/opengl/QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="MinimalViewportUpdate" doc="/**
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will determine the minimal viewport region that requires a redraw, minimizing the time spent drawing by avoiding a redraw of areas that have not changed. This is &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;'s default mode. Although this approach provides the best performance in general, if there are many small visible changes on the scene, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; might end up spending more time finding the minimal approach than it will spend drawing.&lt;/p&gt;
 */"/>
        <enum-value name="SmartViewportUpdate" doc="/**
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will attempt to find an optimal update mode by analyzing the areas that require a redraw.&lt;/p&gt;
 */"/>
        <enum-value name="NoViewportUpdate" doc="/**
&lt;p&gt;&lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will never update its viewport when the scene changes; the user is expected to control all updates. This mode disables all (potentially slow) item visibility testing in &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;, and is suitable for scenes that either require a fixed frame rate, or where the viewport is otherwise updated externally.&lt;/p&gt;
 */"/>
</enum>
    <enum name="CacheModeFlag" doc="/**
&lt;p&gt;This enum describes the flags that you can set for a &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;'s cache mode.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#cacheMode()&quot;&gt;&lt;tt&gt;cacheMode&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="CacheNone" doc="/**
&lt;p&gt;All painting is done directly onto the viewport.&lt;/p&gt;
 */"/>
        <enum-value name="CacheBackground" doc="/**
&lt;p&gt;The background is cached. This affects both custom backgrounds, and backgrounds based on the &lt;a href=&quot;QGraphicsView.html#backgroundBrush()&quot;&gt;&lt;tt&gt;backgroundBrush&lt;/tt&gt;&lt;/a&gt; property. When this flag is enabled, &lt;a href=&quot;QGraphicsView.html#QGraphicsView(com.trolltech.qt.gui.QGraphicsScene, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt; will allocate one pixmap with the full size of the viewport.&lt;/p&gt;
 */"/>
</enum>
    <enum name="DragMode" doc="/**
&lt;p&gt;This enum describes the default action for the view when pressing and dragging the mouse over the viewport.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsView.html#dragMode()&quot;&gt;&lt;tt&gt;dragMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGraphicsScene::setSelectionArea&lt;/tt&gt; */">
        <enum-value name="NoDrag" doc="/**
&lt;p&gt;Nothing happens; the mouse event is ignored.&lt;/p&gt;
 */"/>
        <enum-value name="ScrollHandDrag" doc="/**
&lt;p&gt;The cursor changes into a pointing hand, and dragging the mouse around will scroll the scrolbars. This mode works both in interactive&lt;/tt&gt; and non-interactive mode.&lt;/p&gt;
 */"/>
        <enum-value name="RubberBandDrag" doc="/**
&lt;p&gt;A rubber band will appear. Dragging the mouse will set the rubber band geometry, and all items covered by the rubber band are selected. This mode is disabled for non-interactive views.&lt;/p&gt;
 */"/>
</enum>
</class>
