ItemSelector is hard to use with generic models
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Triaged
|
Low
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Hi!
The default delegate of ItemSelector, OptionSelectorD
I tried replacing the delegate of ItemSelector with a custom delegate, but nothing was displayed. I guess some documentation needs to be added to explain how to replace the delegate.
I ended up with this solution, which seems to be working well:
===============
text: "Account"
model: root.model
}
}
===============
However, I wonder if this will be supported in the future or if I run the risk of seeing my code break when a new version of the UI toolkit is released.
So, I'd recommend to add documentation on how to address this case; also, the OptionSelectorD
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
modelData is available also in Repeater, generally available when the model is a number, an array or contains objects with one single role.