title: How to iterate through only certain type of files using QDirIterator
body: <p>I want to iterate through only .xml files (all files under selected folder and its sub-directories), is that possible with <code>QDirIterator</code>?</p>
  
  <pre><code>QDirIterator iter( rootDir, QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot);
  
  QString fileName;
  
  while(iter.hasNext() )
  {
     qDebug() &lt;&lt; iter.next();
  
     fileName = iter.fileName();
  
     // now I have to check if fileName is indeed a .xml extension
  }
  </code></pre>
  
  <p>As can be seen in code above, if my iterator can jump to .xml files only than I don't have to check for file extension in the loop..is it possible?</p>