Important: Please read the Qt Code of Conduct -

Example does not run as it should!

  • Hi,

    An example taken from "Using views with an existing model" which uses 2 views inside a splitter, one being a QTreeView and the other a QListView, the model being a QFileSystemModel, when I set:




    Then, the dialog box opens on the currentPath but i cannot navigate towards or go to another directory...

    When I remove those calls to setRootIndex, then thee tree view opens at the highest folder (the computer) and I am able to drill into any directory I need...

    Any ideas how to correct this?


  • Lifetime Qt Champion


    Can you show how you setup your widgets and model ?

Log in to reply