# RoleFilter QML Type

Base type for filters based on a source model role. More...

Import Statement: | import SortFilterProxyModel .
Inherits: | Filter
Inherited By: | RangeFilter, RegExpFilter, and ValueFilter

- List of all members, including inherited members

## Properties

- enabled : bool
- inverted : bool
- roleName : string

## Detailed Description

The RoleFilter type cannot be used directly in a QML file. It exists to provide a set of common properties and methods, available across all the other filter types that inherit from it. Attempting to use the RoleFilter type directly will result in an error.

## Property Documentation

enabled : bool

This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).

By default, filters are enabled.

inverted : bool

This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.

By default, filters are not inverted.

roleName : string

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