Hi everyone!

I have implemented a Hierarchical table using the QTreeView in Qt5.
I am using the QSortFilterProxyModel() to implement the search feature in the QTreeView. It is working okay in Qt5.

Qt Code:
  1. proxyModel = new QSortFilterProxyModel(this);
  2. proxyModel->setSourceModel(model_t);
  3. proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
  4. proxyModel->setFilterKeyColumn(0);
  5. ui->treeView->setModel(proxyModel);
  6. ui->treeView->setSortingEnabled(true);
  7. proxyModel->setRecursiveFilteringEnabled(true);
  8. ui->treeView->expandAll();
To copy to clipboard, switch view to plain text mode 

But now I want to run my code in the Qt4. However, I am getting the error that Qt 4 doesn't recognize "proxyModel->setRecursiveFilteringEnabled(true);" .

Is there any alternative for "proxyModel->setRecursiveFilteringEnabled(true);" in Qt 4?