aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickloader/data/invalidateContext.qml
blob: b5a28f5d0ff8d2034520df44921920969e983686 (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
26
27
28
import QtQuick

Item  {
    Loader {
        active: loaderActive
        sourceComponent: comp
    }

    Component {
        id: comp
        Column {
            Repeater {
                id: repeater
                model: cppModel

                Component.onCompleted: console.log("Repeater constructed");
                Component.onDestruction: console.log("Repeater destroyed");

                delegate: Text {
                    text: {
                        console.log("updating text");
                        return display + rootData.getValue();
                    }
                }
            }
        }
    }
}