aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcomponent/data/callingQmlContext.qml
blob: 8193d0f36cbce658cf0ddb383710716f6dabefb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import QtQml 2.0
import qqmlcomponenttest 1.0
QtObject {
    property Component factory
    property QtObject incubatedObject

    Component.onCompleted: {
        var incubatorState = factory.incubateObject(null, { value: 42 })
        incubatorState.onStatusChanged = function(status) {
            incubatedObject = incubatorState.object
        }
    }
}