Could you do this before the exec()? QSqlRecord copies all the values if you call ```query.record()``` after ```exec()```'ing the query.