I found the problem, I gave to that QSqlQueryModel is only for reading. So QSqlTableModel used. Thanks.
Forum Rules
Bookmarks