Solved filter and unfilter QSortFilterProxyModel
-
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());
-
Thanks, It works as expected.