summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-02-18 06:05:50 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-02-18 06:05:50 (GMT)
commitc8e266aaf21f470fd45ac61244466583b503fda2 (patch)
tree694c73b774cf77c590cecdfb1b6d14fcd5052a8b /doc
parent635b329592f26d64eeb6212b6056249b15293dcf (diff)
downloadQt-c8e266aaf21f470fd45ac61244466583b503fda2.zip
Qt-c8e266aaf21f470fd45ac61244466583b503fda2.tar.gz
Qt-c8e266aaf21f470fd45ac61244466583b503fda2.tar.bz2
QmlView API review. See QmlChanges.txt for details.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/integrating.qdoc9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/src/declarative/integrating.qdoc b/doc/src/declarative/integrating.qdoc
index d93a6ff..b1095a7 100644
--- a/doc/src/declarative/integrating.qdoc
+++ b/doc/src/declarative/integrating.qdoc
@@ -84,6 +84,15 @@ QGraphicsObject *object =
scene->addItem(object);
\endcode
+The following QGraphicsView options are recommended for optimal performance
+of QML UIs:
+
+\list
+\o QGraphicsView::setOptimizationFlags(QGraphicsView::DontSavePainterState);
+\o QGraphicsView::setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);
+\o QGraphicsScene::setItemIndexMethod(QGraphicsScene::NoIndex);
+\endlist
+
\section1 Using existing QGraphicsWidgets in QML
Another way of integrating with a QGraphicsView based UI is to expose your
existing QGraphicsWidgets to QML, and constructing your scene in QML. Note that