title: How to access members of a struct inside QList
body: <p>I have a struct like this:</p>
  
  <pre><code>struct Flow
  {
    QLayoutItem * item;
    bool shown;
  };
  </code></pre>
  
  <p>I would like to use a <code>QList</code> for this struct like this:</p>
  
  <pre><code>QList&lt;Flow&gt; itemList;
  </code></pre>
  
  <p>The following function gives a compile error:</p>
  
  <pre><code>void FlowLayout::add(QLayoutItem *item)
  {
    itemList.item = item;
    itemList.shown = true;
    itemList.append(itemlist);
  }
  </code></pre>
  
  <p>The error is:</p>
  
  <p><code>class "QList&lt;FlowLayout::Flow *&gt;" has no member "item"</code></p>
  
  <p>How to access item member and append it to the list?</p>