Re: Assigning delegate to repeater model in QML

2011-06-17 Thread Marco Martin
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

Assigning delegate to repeater model in QML

2011-06-17 Thread Viranch Mehta
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