qtdeclarative/tests/auto/qml/qqmlecmascript/data/deleteRootObjectInCreation....

11 lines
345 B
QML
Raw Normal View History

import QtQuick 2.0
Item {
id: test
property bool testConditionsMet: false
Component.onCompleted: {
var c = Qt.createComponent("DeleteRootObjectInCreationComponentDerived.qml")
c.createObject(null).setTestConditionsMet(test); // JS ownership, but it will be a RootObjectInCreation until finished beginCreate.
}
}