|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# QFilteringProxyModel Class Reference
[QtGui module]

The QFilteringProxyModel class provides support for filtering data that is passed between another model and a view. More...

    #include <QFilteringProxyModel>

Inherits QMappingProxyModel.

Inherited by QStringFilterModel.

This class was introduced in Qt 4.1.

- List of all members, including inherited members

### Public Functions

- QFilteringProxyModel ( QObject * parent = 0 )
- ~QFilteringProxyModel ()
- virtual void clear ()

- 1 public function inherited from QMappingProxyModel
- 2 public functions inherited from QAbstractProxyModel
- 32 public functions inherited from QAbstractItemModel
- 28 public functions inherited from QObject

### Protected Functions

- virtual bool filterColumn ( int source_column, const QModelIndex & source_parent ) const
- virtual bool filterRow ( int source_row, const QModelIndex & source_parent ) const

- 5 protected functions inherited from QMappingProxyModel
- 13 protected functions inherited from QAbstractItemModel
- 7 protected functions inherited from QObject

### Additional Inherited Members

- 1 property inherited from QObject
- 2 public slots inherited from QAbstractItemModel
- 1 public slot inherited from QObject
- 12 signals inherited from QAbstractItemModel
- 1 signal inherited from QObject
- 4 static public members inherited from QObject

## Detailed Description

The QFilteringProxyModel class provides support for filtering data that is passed between another model and a view.

See also QProxyModel, QAbstractItemModel, and Model/View Programming.

## Member Function Documentation

### QFilteringProxyModel::QFilteringProxyModel ( QObject * parent = 0 )

Constructs a filterting proxy model with the given parent.

### QFilteringProxyModel::~QFilteringProxyModel ()

Destroys the filtering proxy model.

### void QFilteringProxyModel::clear () `[virtual]`

Clears the filtering proxy model, removing the mapping.

Reimplemented from QMappingProxyModel.

### bool QFilteringProxyModel::filterColumn ( int source_column, const QModelIndex & source_parent ) const `[virtual protected]`

Returns true if the value in the item in the column indicated by the given source_column and source_parent should be removed from the model. The default implementation returns false.

### bool QFilteringProxyModel::filterRow ( int source_row, const QModelIndex & source_parent ) const `[virtual protected]`

Returns true if the value in the item in the row indicated by the given source_row and source_parent should be removed from the model. The default implementation returns false.