filter and unfilter QSortFilterProxyModel
Solved
General and Desktop
-
wrote on 15 Nov 2016, 07:12 last edited by
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. -
wrote on 15 Nov 2016, 08:21 last edited by
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());
1/3