aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qquickvisualdatamodel/data/create.qml
blob: 36ea3baf7618484eb6729b689107bbbe0bc247f3 (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

    model: VisualDataModel {
        id: visualModel

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

            property bool destroyed: false

            Component.onDestruction: destroyed = true
        }
    }
}