aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcomponent/data/createdFromQmlFail.qml
blob: e09ddcccc1fc442f951b1e726c0306d31b8bccca (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)
        root.it = component.createObject(component)
    }
}