Filter container accepting rows accepted by at least one of its child filters. More...
Import Statement: | import Felgo 4.0 |
Since: | Felgo 2.18.1 |
Inherits: |
The AnyOf type is a Filter container that accepts rows if any of its contained (and enabled) filters accept them.
In the following example, only rows with their firstName
or lastName
role beginning with the content of the nameTextField
will be accepted:
TextField { id: nameTextField } SortFilterProxyModel { sourceModel: contactModel filters: AnyOf { RegExpFilter { roleName: "lastName" pattern: nameTextField.text caseSensitivity: Qt.CaseInsensitive } RegExpFilter { roleName: "firstName" pattern: nameTextField.text caseSensitivity: Qt.CaseInsensitive } } }
See also FilterContainer.
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.
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: