title: How to get details about the selected items using QTreeView?
body: <p>I'm using QTreeView with QDirModel like this:</p>
  
  <pre><code>QDirModel * model = new QDirModel;
  ui-&gt;treeView-&gt;setModel(model);
  ui-&gt;treeView-&gt;setSelectionMode(QTreeView::ExtendedSelection);
  ui-&gt;treeView-&gt;setSelectionBehavior(QTreeView::SelectRows);
  </code></pre>
  
  <p>This works fine, however, I'm not sure how to get the details about the files I select. I've got this so far:</p>
  
  <pre><code>QModelIndexList list = ui-&gt;treeView-&gt;selectionModel()-&gt;selectedIndexes();
  </code></pre>
  
  <p>But not sure what to do now, I'd like to get each file's name and full path. An example would be really great. Thank you.</p>