summaryrefslogtreecommitdiffstats
path: root/examples/declarative/modelviews/stringlistmodel/view.qml
blob: 41c03d93d2f64ab86c52660f324f39becaeef0d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }
        }
    }
}