diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-02-01 23:03:34 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-02-01 23:03:34 (GMT) |
commit | 35a211cd95e0d09ef0b547b57f01f0a9ff41da2f (patch) | |
tree | a74bdf9eedee7ae0eba4ddb2fe13064cd79db81e /examples/declarative/objectlistmodel/view.qml | |
parent | e93f76cc533751944e66c02d868f3c527814efa0 (diff) | |
download | Qt-35a211cd95e0d09ef0b547b57f01f0a9ff41da2f.zip Qt-35a211cd95e0d09ef0b547b57f01f0a9ff41da2f.tar.gz Qt-35a211cd95e0d09ef0b547b57f01f0a9ff41da2f.tar.bz2 |
Fix QList<QObject*> as a model. Add docs and example.
Diffstat (limited to 'examples/declarative/objectlistmodel/view.qml')
-rw-r--r-- | examples/declarative/objectlistmodel/view.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/declarative/objectlistmodel/view.qml b/examples/declarative/objectlistmodel/view.qml new file mode 100644 index 0000000..5f5e415 --- /dev/null +++ b/examples/declarative/objectlistmodel/view.qml @@ -0,0 +1,16 @@ +import Qt 4.6 + +ListView { + width: 100 + height: 100 + anchors.fill: parent + model: myModel + delegate: Component { + Rectangle { + height: 25 + width: 100 + color: model.color + Text { text: name } + } + } +} |