|  | 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.

- List of all members, including inherited members

### Properties

- keyColumn : int
- regExp : QRegExp

- 1 property inherited from QObject

### Public Functions

- QStringFilterModel ( QObject * parent = 0 )
- ~QStringFilterModel ()
- int keyColumn () const
- QRegExp regExp () const
- void setKeyColumn ( int column )
- void setRegExp ( const QRegExp & regExp )

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

### Public Slots

- void setPattern ( const QString & pattern )

- 2 public slots inherited from QAbstractItemModel
- 1 public slot inherited from QObject

### Additional Inherited Members

- 12 signals inherited from QAbstractItemModel
- 1 signal inherited from QObject
- 4 static public members inherited from QObject
- 2 protected functions inherited from QFilteringProxyModel
- 5 protected functions inherited from QMappingProxyModel
- 13 protected functions inherited from QAbstractItemModel
- 7 protected functions inherited from QObject

## 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:

- int keyColumn () const
- void setKeyColumn ( int column )

### regExp : QRegExp

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

Access functions:

- QRegExp regExp () const
- void setRegExp ( const QRegExp & regExp )

## 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.