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

ListView {
    width: 200
    height: 200

    model: VisualDataModel {
        id: visualModel

        persistedItems.includeByDefault: true

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

            property bool destroyed: false


            Component.onDestruction: destroyed = true
        }
    }
}