title: QML update the property of Item inside the ListView
body: <pre><code>Item {
  
  Component.onComplete: {
      for (var i=0;i &lt; 10;i++) {
          myModel.append({&quot;myTxt&quot;: &quot;SomeThing&quot;+i});
      }
  }
  
  ListModel {
      id: myModel
  }
  
  ListView {
      id: listView
      width: parent.width
      height: parent.height
      model: myModel
      delegate: Rectangle {
          property string propItemState: 0;
          
          MyListItem {
              id: test
              itemText: myText
              itemState: propItemState;
          }
      }
  }
  }
  </code></pre>
  <p>I want to update the <code>propItemState</code> once the list is displayed.<br />
  For that, I have tried the below method but am getting an <code>undefined</code> error.<br />
  I am calling this method once the list model is updated.</p>
  <pre><code>function updateListItems() {
      for (var index=0;index &lt; listView.count;index++) {
          console.log(&quot;propItemState: &quot;+listView.contentItem.children[index].propItemState);
          listView.contentItem.children[index].propItemState = 2;
      }
  }
  </code></pre>