Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

FilterRole

A role resolving to true for rows matching all its filters. More...

Import Statement: import Felgo 4.0
Since: Felgo 3.9.0
Inherits:

SingleRole

Properties

Detailed Description

A FilterRole is a ProxyRole that returns true for rows matching all its filters.

In the following example, the isAdult role will be equal to true if the age role is superior or equal to 18.

 SortFilterProxyModel {
     sourceModel: personModel
     proxyRoles: FilterRole {
         name: "isAdult"
         RangeFilter { roleName: "age"; minimumValue: 18; minimumInclusive: true }
     }
 }

See also FilterContainer.

Property Documentation

[default] filters : list<Filter>

This property holds the list of filters for this filter role. The data of this role will be equal to the true if all its filters match the model row, false otherwise.

See also Filter and FilterContainer.


name : string

This property holds the role name of the proxy role.


Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded