Hello,

1)
Is it possible, that the model "knows" which view is calling its methods (e.g. columnCount), and according to it returns different values?

My problem is, that I'd like to apply two different (table) views on one model, but one table view shall show different columns (also column count) than the other one.

I could hide some view columns, but I am afraid this will have negative influence on the performance. I couldn't find any statement if a hidden view column queries for data. I've check it at the moment seems OK - hidden columns are not queried but is this behavior guaranteed?

I've also noticed that data() method is called couple of times, for different display roles. Could I inhibit this, if I know, that only one role will be use?

How to solve this?

2)
The QProxyModel class is deprecated - fine, but the Class Reference does not say what class shall be used instead. Any ideas.

Thanks for your help