IndexFilter

Filters rows based on their source index. More...

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

Filter

Properties

Detailed Description

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

Property Documentation

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.


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