Quantcast
Channel: Active questions tagged qtquick2 - Stack Overflow
Viewing all articles
Browse latest Browse all 107

How to access nested Repeaters

$
0
0

I want to fill the colours in the following rectangles created through Repeaters, dynamically.

I am not able to access the bottom Repeater at all.

How should I access "all" the rectangles here?

Row{    spacing: 20    Repeater    {        id: repeater3        property Repeater repeater2: repeater2        model: head.rows        Column        {            id: columnInBetween            spacing: 20            Repeater            {                id: repeater2                model: head.columns                property Row row1: row1                Row                {                    id: row1                    property Repeater repeater1: repeater1                    Repeater                    {                        id: repeater1                        model: 2                        Rectangle                        {                            width: 20; height: 20                            color: "red"                         }                    }                }            }        }    }}

Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>