March 29, 2011

Merinas Merinas
Lab Rat
57 posts

[solved] Accessing index of parent Repeater

 

Hi,

I’ve got a Repeater in a Repeater, and i want to got indexes of both Repeater. How can i process ?

Thanks.

1 reply

March 29, 2011

Merinas Merinas
Lab Rat
57 posts

I find a way if that can help someone :

  1. Repeater{
  2.  
  3.  Item{
  4.   id:p
  5.   property int parentIndex: index
  6.   Repeater{
  7.    //index refrer to the second repeater
  8.    //p.parentIndex  to the first repeater
  9.   }
  10.  }
  11. }

 
  ‹‹ createObject initial properties      QML Testing with QTestLib [Edited title] ››

You must log in to post a reply. Not a member yet? Register here!