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. Reading "state" value of a delegate from a repeater
QtWS25 Last Chance

Reading "state" value of a delegate from a repeater

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlrepeaterbinding
1 Posts 1 Posters 402 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.
  • A Offline
    A Offline
    Ankit.Jain
    wrote on 12 Jul 2019, 05:21 last edited by Ankit.Jain 7 Dec 2019, 05:27
    #1

    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?

    1 Reply Last reply
    0

    1/1

    12 Jul 2019, 05:21

    • Login

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