Since QFilesystemModel does not sort by itself the reason can't be the sorting but something else. Therefore I would suggest to create a small example and use a profiler like e.g. valgrind/callgrind to see where the cpu spend it's time.