OK.

With QSqlTableModel the result is the same because QSqlQueryModel::select use setQuery.
As solution you can use a QAbstractTableModel where you store the result af the query