On Friday 17 June 2011, Viranch Mehta wrote:
> However, if I use it as follows, it works:
>
> Row {
> Repeater {
> model: ["hello", "world"]
> delegate: Item {
> id: delegateItem
> Text { text: modelData }
> }
> }
>
> But this makes the code loo
Hi,
I just noticed something unusual with assigning delegates to data models in
QML. I have following item to use as a delegate:
Item {
id: delegateItem
Text { text: modelData }
}
And following data model:
Row {
Repeater {
model: ["hello", "world"]
delegate: delegate