I need to load all QFileSystemHierarchy from the start, to filter through all childs

Viewed 291

I am using QFileSystemModel and QSortFilterProxyModel. With some rootDir set to QFileSystemModel. And I'm using filterAcceptsRow to filter all child folders and files for contatining "filter" name. But function can't check all inner directories because of QFileSystemModel doesn't load all hierarchy before it needs it.

Look how different search results from QDir recursive search and using QFileSystemModel, just because QFileSystemModel don't know anything of some subfolders during the search. At the bottom results there is a case insensitivity, but it is not the huge difference.

How can I force QFileSystemModel load all hierarchy, no matter how much time it will take?

0 Answers
Related