Obsolete Members for QSortFilterProxyModel

The following members of class QSortFilterProxyModel are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

Protected Functions

(since 6.0, deprecated in 6.13) void invalidateColumnsFilter()
(deprecated in 6.13) void invalidateFilter()
(since 6.0, deprecated in 6.13) void invalidateRowsFilter()

Member Function Documentation

[protected, since 6.0, deprecated in 6.13] void QSortFilterProxyModel::invalidateColumnsFilter()

This function is deprecated since 6.13. We strongly advise against using it in new code.

use beginFilterChange() and endFilterChange(Direction::Rows) instead.

Invalidates the current filtering for the columns.

This function should be called if you are implementing custom filtering (by filterAcceptsColumn()), and your filter parameters have changed. This differs from invalidateFilter() in that it will not invoke filterAcceptsRow(), but only filterAcceptsColumn(). You can use this instead of invalidateFilter() if you want to hide or show a column where the rows don't change.

Before your filter parameters change, call beginFilterChange().

This function was introduced in Qt 6.0.

See also invalidate(), invalidateRowsFilter(), and beginFilterChange().

[protected, deprecated in 6.13] void QSortFilterProxyModel::invalidateFilter()

This function is deprecated since 6.13. We strongly advise against using it in new code.

use beginFilterChange() and endFilterChange() instead.

Invalidates the current filtering.

This function should be called if you are implementing custom filtering (e.g. filterAcceptsRow()), and your filter parameters have changed.

Before your filter parameters change, call beginFilterChange().

void MySortFilterProxyModel::setFilterMaximumDate(QDate date)
{
    beginFilterChange();
    maxDate = date;
    endFilterChange(QSortFilterProxyModel::Direction::Rows);
}

See also invalidate(), invalidateColumnsFilter(), invalidateRowsFilter(), and beginFilterChange().

[protected, since 6.0, deprecated in 6.13] void QSortFilterProxyModel::invalidateRowsFilter()

This function is deprecated since 6.13. We strongly advise against using it in new code.

use beginFilterChange() and endFilterChange(Direction::Columns) instead.

Invalidates the current filtering for the rows.

This function should be called if you are implementing custom filtering (by filterAcceptsRow()), and your filter parameters have changed. This differs from invalidateFilter() in that it will not invoke filterAcceptsColumn(), but only filterAcceptsRow(). You can use this instead of invalidateFilter() if you want to hide or show a row where the columns don't change.

Before your filter parameters change, call beginFilterChange().

This function was introduced in Qt 6.0.

See also invalidate(), invalidateFilter(), and invalidateColumnsFilter().

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.