RangeFilter

Filters rows between boundary values. More...

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

RoleFilter

Properties

Detailed Description

A RangeFilter is a RoleFilter that accepts rows if their data is between the filter's minimum and maximum value.

In the following example, only rows with their price role set to a value between the tow boundary of the slider will be accepted :

 RangeSlider {
    id: priceRangeSlider
 }

 SortFilterProxyModel {
    sourceModel: priceModel
    filters: RangeFilter {
        roleName: "price"
        minimumValue: priceRangeSlider.first.value
        maximumValue: priceRangeSlider.second.value
    }
 }

Property Documentation

maximumInclusive : int

This property holds whether the minimumValue is inclusive.

By default, the minimumValue is inclusive.

See also minimumValue.


maximumValue : int

This property holds the maximumValue of the filter. Rows with a value higher than maximumValue will be rejected.

By default, no value is set.

See also maximumInclusive.


minimumInclusive : int

This property holds whether the minimumValue is inclusive.

By default, the minimumValue is inclusive.

See also minimumValue.


minimumValue : int

This property holds the minimumValue of the filter. Rows with a value lower than minimumValue will be rejected.

By default, no value is set.

See also minimumInclusive.


roleName : string

This property holds the role name that the filter is using to query the source model's data when filtering items.


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