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