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:
proxyModel->setSourceModel(model_t); proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive); proxyModel->setFilterKeyColumn(0); ui->treeView->setModel(proxyModel); ui->treeView->setSortingEnabled(true); proxyModel->setRecursiveFilteringEnabled(true); 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?
Bookmarks