Hi,
Any specific reason you want to use createComponent ?
You can instead directly assign a QML to source of the Loader
For eg.
workspace.source = "WorkSpace.qml"
console.log(workspace.item.color) //to access the properties, use item
More here [qt-project.org].
↧