Unsolved 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:
tree->setRootIndex(model->index(QDir::currentPath()));
and
list->setRootIndex(model->index(QDir::currentPath()));
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?
Thanks,
Juan -
Hi,
Can you show how you setup your widgets and model ?