title: Creating tree models in qt and data mapping
body: <p>I have looked through the qt docs at the tree model examples. I am struggling at how to  map my data structure to the model.</p>
  
  <p>I have an array of mystructs which I would like to display in a tree, could someone offer any help on how to do this. The structure is shown below</p>
  
  <pre><code>struct mystruct{
      int id;
      float val;
      struct settings{
              QString setting_1;
              QString setting_2;
              bool on;
      };
  };
  </code></pre>
  
  <p>I am trying to fit this structure into the qt simpletreemodel example.</p>
  
  <p>Thanks</p>