Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Possible to tell the number of an item within a repeater?

$
0
0
I have 6images I want to use as buttons on a 3×2 grid. I want them all to behave the same, just use different images based on their index in the repeater. The images are named image_1.png … image_6.png etc. is there a way I can set properties of an item in a repeater based on what number in the repeater the item is?

Viewing all articles
Browse latest Browse all 4972

Trending Articles