aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data/typedModel.qml
blob: d2b3f7e42f32ea6b7e08a08959b8659a9f8f1711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick 2.0

ListView {
    width: 100
    height: 100

    delegate: Item {
        width: 100
        height: 10
    }
    model: listModel

    ListModel {
        id: listModel

        ListElement { label: "a" }
        ListElement { label: "b" }
        ListElement { label: "c" }
        ListElement { label: "d" }
        ListElement { label: "e" }
        ListElement { label: "f" }
    }
}