Reading "state" value of a delegate from a repeater



  • Hi,

    The code is something like:

    Image  {
        id: image
    }
    
    Repeater {
        id: repeater
        model: cppExposedModel
    
        delegate: component
    }
    
    Component {
        id: component
    
        Item {
            id: item
       }
    }
    

    Now I want to set the visibility of the image using the state of Item(s). I've tried looping over the repeater, but I'm returned a null on use of itemAt.
    I'm getting an error that the item is linked to a non-notifyable property. Due to this when I tried changing the item state, the visibility evaluation code is never evoked. Might I be suggested the correct approach for this?



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.