'how to insert a list<Item> of items somewhere with Repeater

Suppose I have an Item which exposes a items property of type list<Item>, which now is set to:

items: [
    Rectangle {
        width: sz; height: sz
        color: 'red'
    },
    Rectangle {
        width: sz; height: sz
        color: 'green'
    },
    Rectangle {
        width: sz; height: sz
        color: 'blue'
    }
]

how to instantiate that list, e.g. inside a:

Row {
    spacing: 20
    Repeater {
        model: items
        delegate: ...?
    }
}


Solution 1:[1]

Found the answer in Item.data:

Row {
    spacing: 20
    data: items
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 fferri