Important: Please read the Qt Code of Conduct -

QTreeView/QFileSystemModel to show directory structure

  • 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?

  • Moderators

    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.


Log in to reply