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)
}
↧