I am trying to change QTreeView with a auto update and I am able to set path with this code
tree->setCurrentIndex(fsModel->index(QDir::currentPath())); // or any path
## Heading ## Got from this link
But my question is how I can expand once CurrentIndex changed for a folder ?