Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Windows Tree View
samdol last edited by
I made a treeView/QFileSystemModel to show directory structure.
When I set root index as following,
QTreeView *treeView = new QTreeView(this);
it show only drive letters as you can see the left hand side of attached
Does anyone know how I show the directory structure like the right hand side of picture?
Did you try http://doc.qt.io/qt-5.7/qtreeview.html#setExpanded ?
thats not possible directly, since they are "Windows specific".
You can create a custom proxy model (around the QFileSystemModel) and insert them yourself.
But i don't know if the exact same view is even achievable.