You are wrong, I just checked it. The model works fine for non-square models.

Qt Code:
  1. int main(int argc, char **argv){
  2. QApplication app(argc, argv);
  3. QStandardItemModel model(3,5);
  4. for(int i=0;i<5;i++)
  5. for(int j=0;j<3;j++){
  6. model.setData(model.index(j,i), qrand()%20);
  7. }
  8. v1.setModel(&model);
  9. TransposeProxyModel proxy;
  10. proxy.setSourceModel(&model);
  11. v2.setModel(&proxy);
  12. v1.show();
  13. v2.show();
  14. return app.exec();
  15. }
To copy to clipboard, switch view to plain text mode