You could use a proxy model to filter out the rows/columns you don't want to appear.
Cheers,
_
You could use a proxy model to filter out the rows/columns you don't want to appear.
Cheers,
_
Omid123 (14th February 2015)
To expand on anda_skoa's answer, you need a class derived from QSortFilterProxyModel that reimplements the QSortFilterProxyModel::filterAcceptsRow() and / or QSortFilterProxyModel::filterAcceptsColumn() methods. These methods return true if the row or column should be displayed, false if not. You set your current model as the source model for the proxy, and you set the proxy as the model used by the view.
Omid123 (14th February 2015)
Bookmarks