Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Repeater - QQuickItem::stackAfter: Cannot stack after 0x2eb4d768 which must be a sibling

Repeater - QQuickItem::stackAfter: Cannot stack after 0x2eb4d768 which must be a sibling

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 1.5k Views
  • 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.
  • P Offline
    P Offline
    Prochy
    wrote on last edited by Prochy
    #1

    Hi,

    I'm trying set dynamic parent of item in a Repeater:

    Repeater{
                model: options
                delegate: Text{
                    enabled: model.modelData.enabled
                    text: index+1
                    anchors.fill:parent
                    color: (model.modelData.enabled)?Colors.GREY:Colors.DARK_GREY
                    visible: model.modelData.visible
                    Component.onCompleted: {
                        var temp = findObject(sectionF, "f"+(index+1));////return right parent object
                        if(temp!=undefined)
                              this.parent = temp; 
                    }
                }
            }
    

    But the code is throwing a warning: "QQuickItem::stackAfter: Cannot stack after 0x2eaa2560, which must be a sibling".
    The program is running good but I don't know where I'm doing a mistake that I'm getting this warning.
    Or is it not a right solution of my problem?

    Thank you for help

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved