Here is a thread on Qt-interest about this.

Quote Originally Posted by andreabiscuola View Post
Why the problem appear only using the QSqlTableModel and not with the QSqlQuery?
I guess you could dig into the source code to figure out why