Qt Code:
  1. print("proxyModel:")
  2. print(proxyModel.columnCount(QModelIndex()))
  3. print("myModel:")
  4. print(myModel.columnCount(QModelIndex()))
To copy to clipboard, switch view to plain text mode 

results in:
Qt Code:
  1. proxyModel:
  2. 3
  3. myModel:
  4. 3
To copy to clipboard, switch view to plain text mode 


By the way, if you omit the proxy then the view displays the data properly, correct?
yes. It works fine without the proxy model.

Ps: I will be out for a few hours (so my next reply won't be coming right away ).
And before I forget it: thanks for the fast replies.