12 lines
326 B
QML
12 lines
326 B
QML
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})
|
|
}
|
|
}
|