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

ListView {
    width: 200
    height: 200

    property var persistentHandle

    model: VisualDataModel {
        id: visualModel

        persistedItems.includeByDefault: true

        model: myModel
        delegate: Item {
            id: delegate
            objectName: "delegate"
            width: 200
            height: 20
        }
    }
}