QSortFilterProxyModel only filter rows, if you need filter columns the easy way is rewrite the DB query to include ONLY the column you need.
BTW: QIdentityProxyModel cant sort or filter the data in the model. QIdentityProxyModel is more suitable for transform the data of the source model. transforms like change num of second in a format "mm:ss" convert all the string to upper.




Reply With Quote
Bookmarks