Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!
Filter container accepting rows accepted by at least one of its child filters. More...
Import Statement: | import Felgo 3.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 the rows where the firstName
role or the lastName
role match the text entered in 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 } } }