You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2019. It is now read-only.
There are several stages we can improve on filtering table/tree views:
use a basic QSortFilterProxy model to filter one or all columns at once using a QLineEdit to enter arbitrary search terms.
Advantage: easy to implement (already there), Disadvantage: does not allow to specify more complex filters like "all my done jobs", no selective multi column filtering only one ro all columns
A slightly improved version allows to set the column or either all columns to be filtered in
use QSortFilterProxyModel with regexes to allow regexes like [Unknown|Idle]. This is not very intuitive to the end user, but provides a quick to implement way of getting better filter results.
provide a way to save search strings as presets and display them as buttons, so we do not have to implement specific filters like " [x] Done [x] Unknown " etc. This could make the system very flexible
Use an easy to learn syntax for specifying filter queries: "Status:Idle AND RAM:>=64". Parsing this could be borrowed from the "whoosh" search library. This would allow for very flexible filters and nice presets, but would need a custom (i.e. python, which could mean slow) implementation in the QSortFilterProxy model.
The text was updated successfully, but these errors were encountered:
I think either (1) or (4) solution would be better:
(1) simple "all columns" filter is a good start as we mostly request on "user", "name", "prod".
It can be a bit tricky for "status" as user doesn't know the int value of each status.
(4) predefined filters is attractive as it can easily be configurable, we can imagine having custom filters saved per users in addition to more generic filters accessible to everyone.
(1) is basically there. Status is easy and works, since filtering in general is using the "DisplayRole" which is the "nice" display name for a status.
(4) this shoud be the ultimate goal, I agree
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There are several stages we can improve on filtering table/tree views:
Advantage: easy to implement (already there), Disadvantage: does not allow to specify more complex filters like "all my done jobs", no selective multi column filtering only one ro all columns
The text was updated successfully, but these errors were encountered: