HI

I wanted to incremnet a property inside a repeater delegate or keep the property outside the delegate and increment with in delegate.I do not want to use index property as it is out of my need. Please suggest some good answers quickly
I am in need of this badly...
Thanks in Advance
Here is the snippet:

Qt Code:
  1. Repeater{
  2. model: 4
  3. property var x
  4. delegate: Button{
  5. x: {var a=0;a;} //i tried this but it says unable to assign undefined to QString and i get binding loop too
  6. text: elements[x] //index wont be helpful for my need
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 


Regards
Beemaneni