Repeater and item list
-
I have list with QML items:
@property list<Item> pages@I'd like to use this list with Repeater. For now I have to copy item data into Repeater's delegate:
@
Repeater {
model: pages
Item { data: modelData }
}
@Is there a way to avoid copying? The following doesn't work.
@
Repeater {
model: pages
delegate: modelData
}
@Thanks.
-
Hi,
I don't know of any way to do this with a list of items without wrapping. You may want to have a look at "VisualItemModel":http://doc.qt.nokia.com/4.7-snapshot/qml-visualitemmodel.html , and see if it might work for your needs.
Regards,
Michael