Filter QML Type | Qt 6.12
Description: Abstract base type providing functionality common to filters.
Keywords: qmltype

- Qt 6.12
- QML Types
- Filter
- Qt 6.12.0 Reference Documentation

# Filter QML Type

Abstract base type providing functionality common to filters. More...

Import Statement: | `import QtQml.Models`
Since: | Qt 6.10
Inherits: | QtObject
Inherited By: | FunctionFilter, RangeFilter, RegExpFilter, RoleFilter, and ValueFilter
Status: | Technology preview

This type is in technology preview and is subject to change.

- List of all members, including inherited members

## Properties

- column : int
- enabled : bool
- inverted : bool

## Detailed Description

Filter provides a set of common properties for all the filters that they inherit from.

## Property Documentation

### column : int

This property specifies which column in the model the filter should be applied on. If the value is `-1`, the filter will be applied to all the columns in the model.

The default value is `-1`.

### enabled : bool

This property enables the SortFilterProxyModel to consider this filter while filtering the model data.

The default value is `true`.

### inverted : bool

This property inverts the filter, causing the data that would normally be filtered out to be presented instead.

The default value is `false`.