filter and unfilter QSortFilterProxyModel

  • Hi
    I could filter elements of QSortFilterProxyModel by
    proxyModel->setFilterRegExp(QRegExp("myword", Qt::CaseInsensitive, QRegExp::FixedString));

    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());

  • @VRonin

    Thanks, It works as expected.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.