It seems like a good solution to your problem would be to implement CustomModel inherited from QFileSystemModel. It is not the easiest for a beginner, but this is how I would do it.