title: Nested QHash Not Saving
body: <p>I have a function <code>read</code> (that takes and returns <code>void</code>), which stores data from a file into a <code>QHash&lt;QString,QHash&lt;QString,QString&gt; &gt;</code> -- for clarity, let's call any QHash fitting this template <code>hash</code>. My aim was to make a "master" list of all the <code>hash</code>es that exist, which would be a <code>QHash&lt;QHash&lt;QString,QHash&lt;QString,QString&gt; &gt; &gt;</code> -- let's call this <code>masterHash</code>. Within <code>read</code>, everything is fine: <code>masterHash["hash1"]</code> and <code>hash1</code> are identical.</p>
  
  <p>I have another function <code>write</code> (that takes a QString of the form<code>"hash1"</code> and returns <code>void</code>), which stores data from <code>masterHash["hash1"]</code> to a file. Now, this was my aim in creating <code>masterHash</code> in the first place -- to access <code>hash1</code> from <code>"hash1"</code>. Within <code>write</code>, <code>hash1</code> still contains the things that were stored in <code>read</code>, but <code>masterHash["hash1"]</code> is now empty (though <code>masterHash</code> still contains the key <code>"hash1"</code>).</p>
  
  <p>What am I doing wrong or missing? There is no QHash dereferencing anywhere. (Originally, I didn't even store to <code>hash1</code>, but I was trying to figure out why <code>masterHash["hash1"]</code> wasn't saving.)</p>
  
  <p>Alternately, is there a better way to achieve the same goal (pointing to a hash using a string of its name)?</p>