This is my reimplementation! I've tried to change the index but as it's a const function all my changes resolves in error. What would I need to change in this data function to swap say column 0 with column 1?

Qt Code:
  1. QVariant MyProxyModel::data ( const QModelIndex & index, int role ) const
  2. {
  3. if (!index.isValid())
  4. return QVariant();
  5.  
  6. return QAbstractProxyModel::data(index, role);
  7. }
To copy to clipboard, switch view to plain text mode 

Thank you again for your help!