diff options
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 } + } + } +} |