PDA

View Full Version : QSortFilterProxyModel IS NOT WORKING PROPERLY WITH DYNAMIC DATA



kiran p
14th June 2011, 10:55
Hellow everyone,

I am using QSortFilterProxyModel with QStandardItemModel and QTableView with continuous flow of data.

Filtering is working fine while data is getting inserted.

Filtering is not working when i maintain a fixed number of rows in the model by inserting the coming data as a row at the end (rowcount) and by removing the row at index 0.

Thanks in Advance.

d_stranz
14th June 2011, 16:50
Did you set the "dynamicSortFilter" flag on the proxy?

Is your application in a continuous loop with no chance for events to get processed? All proxy and table updates are through signals and slots, so if your app doesn't ever allow signals to be processed, you'll never see an update.