title: How to iterate over all values() in a QMultiHash
body: <p>I need to iterate over a <code>QMultiHash</code> and examine the list of values that correspond to each key.  I need to use a mutable iterator so I can delete items from the hash if they meet certain criteria.  <a href="http://harmattan-dev.nokia.com/docs/library/html/qt4/qmutablehashiterator.html" rel="nofollow">The documentation</a> does not explain how to access all of the values, just the first one.  Additionally, the API only offers a <code>value()</code> method.  How do I get all of the values for a particular key?</p>
  
  <p>This is what I'm trying to do:</p>
  
  <pre><code>QMutableHashIterator&lt;Key, Value*&gt; iter( _myMultiHash );
  while( iter.hasNext() )
  {
      QList&lt;Value*&gt; list = iter.values();  // there is no values() method, only value()
      foreach( Value *val, list )
      {
          // call iter.remove() if one of the values meets the criteria
      }
  }
  </code></pre>