title: QStringList file directory and filename
body: <p>I have been trying to get a list of all the file names of some images in a directory into a QStringList, the only problem is that I want the name of the directories to also be included in the resulting string.  For example, my list only consists of various image names such as "image_x.jpg" but I want the directories included too, such as "../../images/image_x.jpg". I have been trying different methods for the past few hours and have looked at the Qt docs and I am still stuck. Thanks in advance.</p>
  
  <pre><code>QDir dir ("../../images/");
  dir.setSorting(QDir::Name);
  QStringList list = dir.entryList(QDir::AllEntries | QDir::Dirs);
  
  for (int i = 1; i &lt; list.size(); i++)
  {
      qDebug() &lt;&lt; "Filename " + QString::number(i) + " = " + list.at(i);
  }
  </code></pre>