Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Creating dynamic QML component with complicated data type failed

$
0
0
Also there are other ways of creating dynamic objects, you can create an component like this: Component {   id: blockComponent   Block {} } in theory that should be the same as var blockComponent = Qt.createComponent( "Block.qml" ); only as an QML object and not a local variable. the advantage is you can simply define default values or anything in the Block object, but still create dynamic objects with the ID (you should not use a first capital letter for variable names and IDs): var block = blockComponent.createObject(parent);

Viewing all articles
Browse latest Browse all 4972

Trending Articles