aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qquickvisualdatamodel/data/datalist.qml
blob: 8ce59caddc54bffd579213019e52a3fb308815cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQuick 2.0

ListView {
    width: 100
    height: 100
    model: VisualDataModel {
        id: visualModel
        objectName: "visualModel"
        model: myModel
        delegate: Component {
            Rectangle {
                height: 25
                width: 100
                Text { objectName: "display"; text: display }
            }
        }
    }
}