This forum has been archived. All content is frozen. Please use KDE Discuss instead.

treesortfilter

Tags: None
(comma "," separated)
mangipudi
Registered Member
Posts
1
Karma
0

treesortfilter

Mon Mar 23, 2015 11:25 am
Hi,

Hope this is the right place to ask this question.

I am new to programming in KDE/Qt. I have been trying to implement a file/folder search feature into backintime (a backup program). Currently QFilesystemModel is used to display the contents of a backed-up directory. i would like to search for files AND folders matching a given filter. The parents in the treeView must be shown when at least one child can be found.

I found that on the internet that TreeSortFilter class shows all the parent (folders) if a child matches (unlike the QSortFilterProxyModel's filtering).

However, the problem is that, surprisingly, it seems to apply the filter only to files, but not to folders. On the documentation of the TreeSortFilter i find no information about what it can filter, and what it cannot.

Does anybody know its limitations, OR how to use TreeSortFilter to apply filter to folder names as well, OR an alternative to this TreeSortFilter class (I guess there must be something like this in the KDE libraries)?

Thanks,
Mangipudi


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]