diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-02-24 23:41:08 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-02-24 23:41:08 (GMT) |
commit | 091467faaed8728e3f49dbb402f71372f088f808 (patch) | |
tree | 3746645f09be54da75215d63905c07323f6ef132 /doc/src | |
parent | 800d6691c5fd9c7139ff8b32aab39eab72e443f8 (diff) | |
parent | f39bb2af2d81640d30222cd5abc31b076105dd8b (diff) | |
download | Qt-091467faaed8728e3f49dbb402f71372f088f808.zip Qt-091467faaed8728e3f49dbb402f71372f088f808.tar.gz Qt-091467faaed8728e3f49dbb402f71372f088f808.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/declarative/integrating.qdoc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/src/declarative/integrating.qdoc b/doc/src/declarative/integrating.qdoc index c685d3d..09ed178 100644 --- a/doc/src/declarative/integrating.qdoc +++ b/doc/src/declarative/integrating.qdoc @@ -86,6 +86,9 @@ QGraphicsObject *object = scene->addItem(object); \endcode +There is a convenience QGraphicsWidget subclass, QDeclarativeGraphicsWidget, which takes care of the engine +and component instantiation for you. + The following QGraphicsView options are recommended for optimal performance of QML UIs: @@ -95,6 +98,13 @@ of QML UIs: \o QGraphicsScene::setItemIndexMethod(QGraphicsScene::NoIndex); \endlist +And the following QGraphicsView options are required for QML key handling to work: + +\list +\o QGraphicsView::viewport()->setFocusPolicy(Qt::NoFocus); +\o QGraphicsScene::setStickyFocus(true); +\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 |