filter and unfilter QSortFilterProxyModel
Solved
General and Desktop
-
Hi
I could filter elements of QSortFilterProxyModel by
proxyModel->setFilterRegExp(QRegExp("myword", Qt::CaseInsensitive, QRegExp::FixedString));
proxyModel->setFilterKeyColumn(filterColumn);After that, how can I unfilter to go back to the state before filtering?
In documnet, it says to use reset(). In Qt 4.8.x I could see reset(), but there is no such member function in Qt 5.5.0. -
as stated in the docs just pass an empty string:
proxyModel->setFilterRegExp(QString());
-
as stated in the docs just pass an empty string:
proxyModel->setFilterRegExp(QString());