I use QDirModel in QTreeView, now I want to filter drive like DVD or CD drive ,and only save the local system drive. I know maybe rewrite the QDirModel, but I cant . can you help me? best have the example code, very thanks.
filter.png
I use QDirModel in QTreeView, now I want to filter drive like DVD or CD drive ,and only save the local system drive. I know maybe rewrite the QDirModel, but I cant . can you help me? best have the example code, very thanks.
filter.png
You can use or subclass QSortFilterProxyModel to filter out entries from the base model.
Bookmarks