I've created a frontend to the UNIX locate command. Right now I'm just feeding the filenames from locate's output to a QListWidget. From the documentation it seems QFileSystemModel is better suited for displaying filenames (it automatically shows the icons, using a separate thread to get the icons so the main thread doesn't become unresponsive).
But it seems it only shows files from a certain directory. My files however can be from different directories. Can I add files to QFileSystemModel or does it just show the contents of a single directory?
With QFileSystemModel you can display the whole file system tree if you only set the model to a view. But you're probably using the setRootIndex() func which leaves you with one folder being displayed.
If so you can try: