title: Saving QList<T> to a file?
body: <p>I've got a QList of QLineEdit*'s </p>
  
  <pre><code>QList&lt;QLineEdit*&gt; example;
  </code></pre>
  
  <p>Example will hold 100 items of lineEdits.</p>
  
  <p>When I try to save or load to a file, it fails to save or load the <code>QList</code> properly, if at all.  I get a much lower than expected count of data.</p>
  
  <p>I see on <code>QList&lt;T&gt;</code>'s resource page <a href="http://doc.trolltech.com/4.5/qlist.html#operator-lt-lt-71" rel="nofollow noreferrer">here</a> that there's the correct operator for &lt;&lt; &amp; >>,
  however I can't seem to get them to save to a file using <code>QDataStream</code></p>
  
  <p>I've also tried copying all the "text()" values from the LineEdits into a seperate String List but I still can't save them to a file.  Any help would be appreciated.</p>
  
  <p><strong>EDIT:</strong> Looks like that did it.  This is how I'm reading them back, is there a more simple approach to this, or have I pretty much covered it?</p>
  
  <pre><code>    //memoryAddresses
      for(int i = 0; i &lt; 100; i++)
      {
          QString temp;
          loadFile &gt;&gt; temp;
          memAddr.at(i)-&gt;setText(temp);
      }
  </code></pre>