title: Creating a complex List Model in QML
body: <p>I am using a <code>ListView</code> to display data. For that I use <code>Component</code> as a delegate and <code>ListModel</code> as the model to create rows in the <code>ListView</code>:</p>
  
  <p>Below image is the use case for the design:</p>
  
  <p><a href="https://i.stack.imgur.com/C01gD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C01gD.png" alt="enter image description here"></a></p>
  
  <p>I use a <code>function</code> to create the model based on the data received from the C++. But since rows and columns are dynamic and also each small box as a <code>checkbox</code> to display I am not getting how to populate/create a model for this.</p>
  
  <pre><code>ListModel{
      id:myListModel
  }
  
  function createModel(){
      for(var rows = 0 ; rows &lt; 10; rows++)
      {
          ListModel.append({}) //How to add data to model like a group based on the row and col ?
      }
  }
  </code></pre>
  
  <p>As each small rectangle as checkboxes and columns are dynamic how to append data to the <code>ListModel</code>?</p>
  
  <p>Please Suggest.</p>