Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [solved] Accessing index of parent Repeater

    QML and Qt Quick
    1
    2
    1913
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Merinas last edited by

      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 Last reply Reply Quote 0
      • M
        Merinas last edited by

        I find a way if that can help someone :
        @Repeater{

        Item{
        id:p
        property int parentIndex: index
        Repeater{
        //index refrer to the second repeater
        //p.parentIndex to the first repeater
        }
        }
        }@

        1 Reply Last reply Reply Quote 0
        • First post
          Last post