summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/qmlmodels.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/declarative/qmlmodels.qdoc')
-rw-r--r--doc/src/declarative/qmlmodels.qdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/declarative/qmlmodels.qdoc b/doc/src/declarative/qmlmodels.qdoc
index 39a09bd..6b28243 100644
--- a/doc/src/declarative/qmlmodels.qdoc
+++ b/doc/src/declarative/qmlmodels.qdoc
@@ -258,7 +258,7 @@ dataList.append(new DataObject("Item 3", "blue"));
dataList.append(new DataObject("Item 4", "yellow"));
QmlContext *ctxt = view.rootContext();
-ctxt->setContextProperty("myModel", QVariant::fromValue(&dataList));
+ctxt->setContextProperty("myModel", QVariant::fromValue(dataList));
\endcode
The properties of the object may then be accessed in the delegate: