http://code.woboq.org/qt5/

Since you want to add a column, you columnCount() would probably first get the value from the base class and then add 1

Qt Code:
  1. int Manifest::columnCount(const QModelIndex &parent)
  2. {
  3. return QSqlQueryModel::columnCount(parent) + 1;
  4. }
To copy to clipboard, switch view to plain text mode 
In data() you would then check if index.column() is your column and if not, delegate to base class as-is.

Cheers,
_