I have an OptionSelector that delegates to an OptionSelectorDelegate, and has a ListModel for the model. How should I access the "sometext" attribute of the ListElements?
OptionSelector {
id: optionSelector
model: listModel
delegate: delegator
}
Component {
id: delegator
OptionSelectorDelegate {
text: name
}
}
ListModel {
id: listModel
ListElement {name: "name"; sometext: "text"}
ListElement {name: "name"; sometext: "more text"}
}