title: How to use a QTreeView Model to display a list of files/folders get through mtp stack
body: <p>I'm currently building an application which need to access to a device through the MTP stack.</p>
  
  <p>I'm developping the code in c++ and Qt to easily be able to port the code on different platform.</p>
  
  <p>I have based the Ui on TreeView to display the folder and ListView to display the list of files of the selected folder.</p>
  
  <p>Most of example are using : </p>
  
  <pre><code>model-&gt;setRootPath("F:/Qt/GUI/files"); 
  treeView-&gt;setModel(model); 
  treeView-&gt;setRootIndex(model-&gt;index("F:/Qt/GUI/files"));
  </code></pre>
  
  <p>All these models are based on model which accessing to the local HD but in my case, I need to do it through list of folders/files using MTP Api. The backend is working, I mean accessing to the device is ok but I'm still thinkin on how to display the tree of folder and create a model.</p>
  
  <p>Thanks</p>