Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QRectF QGraphicsScene::sceneRect [read, write]

the scene rectangle; the bounding rectangle of the scene

The scene rectangle defines the extent of the scene. It is primarily used by QGraphicsView to determine the view's default scrollable area, and by QGraphicsScene to manage item indexing.

If unset, or if set to a null QRectF, sceneRect() will return the largest bounding rect of all items on the scene since the scene was created (i.e., a rectangle that grows when items are added to or moved in the scene, but never shrinks).

See also:
width(), height(), QGraphicsView::sceneRect

Definition at line 108 of file qgraphicsscene.h.

Referenced by render(), and MainWindow::resizeEvent().

Generated by  Doxygen 1.6.0   Back to index