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

QStringFilterModel Class Reference
[QtGui module]

The QStringFilterModel class provides support for filtering data that is passed between another model and a view, using a QRegExp. More...

#include <QStringFilterModel>

Inherits QFilteringProxyModel.

Properties

Public Functions

Public Slots

Additional Inherited Members


Detailed Description

The QStringFilterModel class provides support for filtering data that is passed between another model and a view, using a QRegExp.

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


Property Documentation

keyColumn : int

This property holds the column where the key used to filter the contents of the source model is read from.

Access functions:

regExp : QRegExp

This property holds the regular expression used to filter the contents of the source model.

Access functions:


Member Function Documentation

QStringFilterModel::QStringFilterModel ( QObject * parent = 0 )

Constructs a string filterting model with the given parent.

QStringFilterModel::~QStringFilterModel ()

Destroys the string filtering model.

void QStringFilterModel::setPattern ( const QString & pattern )   [slot]

Sets the string pattern used to filter the contents of the source model, to pattern.


Copyright © 2005 Trolltech Trademarks
Qt 4.1.0-rc1