aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcontext/data/outerContextObject.qml
blob: 992b7609158c3b53b1bfcb073b47e9898f60697c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQml 2.2

QtObject {
    id: window

    property Component itemComponent: Qt.createComponent("MyItem.qml")
    property MyItem item

    property Timer timer: Timer {
        running: true
        interval: 10
        repeat: true
        onTriggered: {
            item = itemComponent.createObject(null, {});
            gc();
        }
    }
}