nagabathula,

Try using QSqlTableModel instead of a QSqlQuery. I just went through the same process and found that was the trick to be able to edit the data.

B1.