Custom File Explorer
-
Hello everyone,
I'm trying to develop my own file browser.
It should display only certain type of files according to its path and file name and a little bit of information about those files.
So I used a QSortFilterProxyModel in order to filter the folders and files that should or should not be displayed. (folder name should have a typical name etc...)
Then I created a derivation of QFileSystemModel in order to add information to each entry of the tree view.
The problem is that it is incredibly slow as soon as the folder has many files in it (about 100).
Am I taking the problem the wrong way ?
All the best.
-
@sapym said in Custom File Explorer:
filter the folders and files that should or should not be displayed. (folder name should have a typical name etc...)
Something like http://doc.qt.io/qt-5/qfilesystemmodel.html#setNameFilters?
-
Not exactly..something more elaborated...
for example :
folder after root should be specially named (for example name should finish by .SET (settings) ) and the folder in settings folder should be *.GRP ...and the files in the *.GRP be of .dat extension or *.stgTo resume :
Folder *.SET
|-->Folder *.GRP
|-->File *.dat
|-->File *.stg
|-->Folder *.GRP
|-->File *.dat
|-->File *.datSo each item should carry its type ( settings ; group ; data or stg file) and will have a special icon.