willjones
20th January 2012, 17:21
I've got a QAbstractItemModel being displayed in a QTreeView, and I'm filtering it using QSortFilterProxyModel.
For the most part, things work okay, but the filtering is agonizingly slow. This in itself would be fine if I could just put up an hourglass and let the user know that the search is running, but the problem is that it's freezing up the whole GUI while the search is running.
Is there any way to run the QSortFilterProxyModel outside of the GUI thread to avoid this problem, and then have the GUI update when the filtering is complete?
For the most part, things work okay, but the filtering is agonizingly slow. This in itself would be fine if I could just put up an hourglass and let the user know that the search is running, but the problem is that it's freezing up the whole GUI while the search is running.
Is there any way to run the QSortFilterProxyModel outside of the GUI thread to avoid this problem, and then have the GUI update when the filtering is complete?