Filters rows matching exactly a value. More...

Import Statement: import Felgo 3.0
Since: Felgo 2.18.1



Detailed Description

A ValueFilter is a simple RoleFilter that accepts rows matching exactly the filter's value

In the following example, only rows with their favorite role set to true will be accepted when the checkbox is checked :

 CheckBox {
    id: showOnlyFavoriteCheckBox

 SortFilterProxyModel {
    sourceModel: contactModel
    filters: ValueFilter {
        roleName: "favorite"
        value: true
        enabled: showOnlyFavoriteCheckBox.checked

Property Documentation

roleName : string

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

value : variant

This property holds the value used to filter the contents of the source model.

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
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support