what is the best way to Filter different types of files in QTreewidget/QListWidget?
General and Desktop
16
Posts
2
Posters
3.7k
Views
2
Watching
-
No there's not indeed, however your have QTreeView that might your needs
-
How many files/folders are you going to handle that way ?
-
Then why don't you use a QFileSystemModel ?
-
You have to use QTreeView/QListView classes when using a model like that.
-
Why can't you ?
-
Refactoring might be hard but it's generally a good thing to have a clean code base