Filters rows based on their source index. More...
Import Statement: | import Felgo 4.0 |
Since: | Felgo 2.18.1 |
Inherits: |
An IndexFilter is a filter allowing contents to be filtered based on their source model index.
In the following example, only the first row of the source model will be accepted:
SortFilterProxyModel {
sourceModel: contactModel
filters: IndexFilter {
maximumIndex: 0
}
}
enabled : bool |
This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).
By default, filters are enabled.
inverted : bool |
This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.
By default, filters are not inverted.
maximumIndex : int |
This property holds the maximumIndex of the filter. Rows with a source index higher than maximumIndex
will be rejected.
If maximumIndex
is negative, it is counted from the end of the source model, meaning that:
maximumIndex: -1
is equivalent to :
maximumIndex: sourceModel.count - 1
By default, no value is set.
minimumIndex : int |
This property holds the minimumIndex of the filter. Rows with a source index lower than minimumIndex
will be rejected.
If minimumIndex
is negative, it is counted from the end of the source model, meaning that :
minimumIndex: -1
is equivalent to :
minimumIndex: sourceModel.count - 1
By default, no value is set.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: