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

How to use the source file that I passed the path in a property of the Item as model/delegate of the ListView inside the Item

$
0
0
I’m not sure how to resolve, but looking at your solution I notice one thing: The model require an object (an instantiated component like ListModel, etc), while delegate require a component (not an object). Your first solution create two objects, so maybe delegate do not get the right thing. Your second solution create two components, so maybe this time is the model that do not get the right thing. Try to mix them. Loader {     id: model     source: modelSource }   ListView {     model: model.item     delegate: Qt.createComponent(delegateSource) }

Viewing all articles
Browse latest Browse all 4972

Trending Articles