title: Auto expand QTreeView Items
body: <p>I am trying to change QTreeView with a auto update and I am able to set path with this code </p>
  
  <p><code>tree-&gt;setCurrentIndex(fsModel-&gt;index(QDir::currentPath())); // or any path</code>## Heading ## Got from this <a href="https://stackoverflow.com/questions/5242161/how-to-select-a-file-in-qtreeview-for-a-qfilesystemmodel-by-path/10747361#10747361">link</a></p>
  
  <p>But my question is how I can expand once CurrentIndex changed for a folder ?</p>