Hi,
I'm wondering how to use QSortFilterProxyModel in the following situation. I have a tree mode laid out like this with 4 columns:
A 1 2 3
|_B 1 2 3
where B is a child item of A with the same number of columns as A. I have two tree views on this model. In the first tree view, I only want to see
A
|_ B
and in the second one I only want to see
1 2 3
1 2 3


Reply With Quote

. I checked QAbstractProxyModel's source, but again, mapFromSource/mapToSource are only called by mapSelectionFromSource/ToSource. Implementing them for either QAbstractProxyModel/QSortFilterProxyModel is not enough, because they are not getting called at all. I've got it working now by simply hiding/unhiding the columns in the tree view. Not the solution I wanted, but it works for now.
Bookmarks