diff options
Diffstat (limited to 'examples/declarative/stringlistmodel/view.qml')
-rw-r--r-- | examples/declarative/stringlistmodel/view.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/declarative/stringlistmodel/view.qml b/examples/declarative/stringlistmodel/view.qml new file mode 100644 index 0000000..41c03d9 --- /dev/null +++ b/examples/declarative/stringlistmodel/view.qml @@ -0,0 +1,15 @@ +import Qt 4.7 + +ListView { + width: 100 + height: 100 + anchors.fill: parent + model: myModel + delegate: Component { + Rectangle { + height: 25 + width: 100 + Text { text: modelData } + } + } +} |