Hi,

I have a QTreeView with an QStandardItemModel behind it. The model contains n rows and m columns. Items in column 0 may contain sub-rows with the same number of columns. A standard QTreeView displays this model fine, I can collapse and expand the tree as expected.
When the number of rows or columns gets to big, scrollbars appear, as would be expected.
Now I have the requirement that certain rows and the last column are always visible when scrolling, kind of like the "freezing rows/columns" feature in Excel.
What would be the best way to implement this?

My first idea was to split the view into multiple views and to setup some filter proxies to assign the correct data to the single views. But that would require manual synchronization of the layouting (column width, scrolling,...). I wonder if there is a better way to do this.