I have a tree view displaying a file system model. I want, upon it starting, make a certain file (specifically, current directory) already selected, so that user will not be forced to go all the way down the file system tree to find it. However, neither QTreeView, nor QFileSystemModel don't have any functions to find the item by role and retrieve its QModelIndex.
Asked
Active
Viewed 3,966 times