title: Qt directory tree from data
body: <p>I would like to create a file-directory tree from data in a variable (not physical on drive).
  I have got data like this:<br>
  <code>data = ['folder1/file1', 'file2', 'file3', 'folder2/'file4']</code><br>
  And I would like to show it like a directory tree.</p>
  
  <ul>
  <li>folder1
  
  <ul>
  <li>file1</li>
  </ul></li>
  <li>folder2
  
  <ul>
  <li>file4</li>
  </ul></li>
  <li>file2</li>
  <li>file3</li>
  </ul>
  
  <p>I've just found anwsers how to do it for existing folders.
  It does not have to be Python code, I think I will be able to read what I need from any other language.<br>
  Which class should I use and how to pass data to it?</p>
  
  <p>Regards,<br>
  Marek</p>