Yes, that does look like a valid approach.

Model might want to keep the pointer to the QSqlQueryModel as a member though, so that it can update it after an INSERT.

Cheers,
_