I am displaying a QFileSystemModel in a QTreeView to display the directories, and then i have a QListView that displays the files of the selected directory.

I want to implement search functionality, so that if i am currently on the root directory, it will search the children directories, and display all matching files in the QListView.

I have tried, and currently still playing with QSortFilterModelProxy, but when it searches, it searches from the currently selected folder, back up to the ancestor list, instead of going into the children.

Any help or guidance would be much appreciated