Inside each item instantiated in a Repeater, “index” is bound: the first item has index 0, the second has 1 and so on. So you can use that directly to number the squares or use it as an array index to look up something in a JS array.
> On 11 Apr 2016, at 11:49, Igor Mironchik <[email protected]> wrote: > > Look. I want to generate chess board - rectangles (8x8). And I want to place > numbers an letters on the sides. This numbers and letters should be anchored > to centers of rectangles. I.e. I want to have something like: > > Text { > anchor.horizontalCenter: cell00.horizontalCenter > } > > ... > > On 11.04.2016 12:40, Gian Maxera wrote: >> Hello, >> I don’t think so. >> Why do you need it ? Maybe we can suggest to you an alternative solution. >> >> Ciao, >> Gianluca. >> >> >>> On 11 Apr 2016, at 10:38, Igor Mironchik <[email protected]> wrote: >>> >>> Hello, >>> >>> Is it possible to generate id of item in Repeater, for example? >>> >>> Thank you. >>> _______________________________________________ >>> Interest mailing list >>> [email protected] >>> http://lists.qt-project.org/mailman/listinfo/interest > > _______________________________________________ > Interest mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
