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.

Public Functions

Protected Functions

Additional Inherited Members


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.


Copyright © 2005 Trolltech Trademarks
Qt 4.1.0-rc1