diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2010-11-15 14:36:40 (GMT) |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2010-11-15 14:36:40 (GMT) |
commit | d96aa02b46f4ff999d4353d8cd7a56ac426e58e0 (patch) | |
tree | acccf25205b5b6c60ae929ad0d7b5e39249007a4 /src/gui/graphicsview/qgraphicsview.cpp | |
parent | 0f905e860804dbb4182663f1628a359e3c0795b1 (diff) | |
download | Qt-d96aa02b46f4ff999d4353d8cd7a56ac426e58e0.zip Qt-d96aa02b46f4ff999d4353d8cd7a56ac426e58e0.tar.gz Qt-d96aa02b46f4ff999d4353d8cd7a56ac426e58e0.tar.bz2 |
Change in QGraphicsView documentation.
Reviewed-by: bnilsen
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsview.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp index 0d39bb5..73f1493 100644 --- a/src/gui/graphicsview/qgraphicsview.cpp +++ b/src/gui/graphicsview/qgraphicsview.cpp @@ -80,9 +80,7 @@ static const int QGRAPHICSVIEW_PREALLOC_STYLE_OPTIONS = 503; // largest prime < yourself, you can call setSceneRect(). 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 translate() to navigate the scene - instead. + an integer (INT_MIN, INT_MAX). QGraphicsView visualizes the scene by calling render(). By default, the items are drawn onto the viewport by using a regular QPainter, and using @@ -101,7 +99,8 @@ static const int QGRAPHICSVIEW_PREALLOC_STYLE_OPTIONS = 503; // largest prime < convenience functions rotate(), scale(), translate() or shear(). The most two common transformations are scaling, which is used to implement zooming, and rotation. QGraphicsView keeps the center of the view fixed - during a transformation. + during a transformation. Because of the scene alignment (setAligment()), + translating the view will have no visual impact. You can interact with the items on the scene by using the mouse and keyboard. QGraphicsView translates the mouse and key events into \e scene |