I have a model that I assign to a delegate in qml, what is the difference in passing properties:
model
ListView {
model: myModel
delegate: Label {
text: model.name
}
}
modelData
ListView {
model: myModel
delegate: Label {
text: modelData.name
}
}
required property
ListView {
model: myModel
delegate: Label {
required property string name
text: name
}
}
Also I noticed that if I use the QAbstrastListModel then only the last option will do, why this?