AnyOf

Filter container accepting rows accepted by at least one of its child filters. More...

Import Statement: import VPlayApps 1.0
Since: V-Play 2.18.1
Inherits:

Filter

Detailed Description

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
       }
   }
 }

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support