QSqlQueryModel is a read only model, you can't remove rows from it.