diff options
author | David Boddie <david.boddie@nokia.com> | 2011-01-31 14:57:45 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-01-31 14:57:45 (GMT) |
commit | 1e7ab0e849900bacf71935f2a2150116b8dc17d1 (patch) | |
tree | d635ca87c7ff1690cd8574f17d5d584eab42c08c /doc/src/declarative/qdeclarativemodels.qdoc | |
parent | e5974b024828578945bd4c349f5f87f82a635225 (diff) | |
parent | 9b9c664470af22ab79ed6211cc5c02d715493657 (diff) | |
download | Qt-1e7ab0e849900bacf71935f2a2150116b8dc17d1.zip Qt-1e7ab0e849900bacf71935f2a2150116b8dc17d1.tar.gz Qt-1e7ab0e849900bacf71935f2a2150116b8dc17d1.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-doc-review into 4.7
Diffstat (limited to 'doc/src/declarative/qdeclarativemodels.qdoc')
-rw-r--r-- | doc/src/declarative/qdeclarativemodels.qdoc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/src/declarative/qdeclarativemodels.qdoc b/doc/src/declarative/qdeclarativemodels.qdoc index 0b4b67d..744b4bd 100644 --- a/doc/src/declarative/qdeclarativemodels.qdoc +++ b/doc/src/declarative/qdeclarativemodels.qdoc @@ -281,7 +281,7 @@ with models of type QAbstractItemModel: \endlist -\section2 Exposing C++ data models to QML +\section2 Exposing C++ Data Models to QML The above examples use QDeclarativeContext::setContextProperty() to set model values directly in QML components. An alternative to this is to @@ -313,7 +313,9 @@ MyModel { id: myModel ListElement { someProperty: "some value" } } +\endqml +\qml ListView { width: 200; height: 250 model: myModel @@ -504,9 +506,9 @@ a Web browser. \l ListView shows a classic list of items with horizontal or vertical placing of items. -\beginfloatright +\div{float-right} \inlineimage qml-listview-snippet.png -\endfloat +\enddiv The following example shows a minimal ListView displaying a sequence of numbers (using an \l{QML Data Models#An Integer}{integer as a model}). |