aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcomponent/data/createdFromQml.qml
blob: 60a20776060cb5584ccb7bb0584fa192d7429145 (plain)
1
2
3
4
5
6
7
8
9
10
11
import QtQuick 2.14

Item {
    id: root
    property Item it
    Component.onCompleted: function() {
        let component = Qt.createComponent("requiredNotSet.qml", Component.PreferSynchronous, root)
        console.assert(component.status == Component.Ready)
        it = component.createObject(component, {i: 42})
    }
}