qt6-bb10/qtdeclarative/tests/auto/qml/qqmlcomponent/data/createObjectClean.qml

15 lines
322 B
QML

import QtQml
QtObject {
id: self
property Component t: Component {
id: t
QtObject {}
}
property QtObject a: t.createObject()
property QtObject b: t.createObject(null)
property QtObject c: t.createObject(self)
property QtObject d: t.createObject(self, ({objectName: "foo"}))
}