Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTreeView/QFileSystemModel to show directory structure
samdol last edited by A Former User
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 this picture
How can I show the directory structure like the right hand side of picture?
same answer since you asked exactly this question the last time 3 months ago.
You even copied the same text and picture... no need to double post. If you still have a question use the old thread.