aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlengine/data/VMETransientEmptyComponent.qml
blob: 487025f67f4cbd52001925a43ba9ce17f04dfdb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import QtQuick 2.0

Item {
    property var p: null

    Component.onCompleted: {
        var c = Qt.createComponent('EmptyComponent.qml')
        p = c.createObject()
        c.destroy()
    }

    Component.onDestruction: {
        p.destroy()
    }
}