[solved]QTableView and SQlite, after query update unwanted new row
-
wrote on 4 May 2011, 07:28 last edited by
Hello,
like mentioned above I have a problem with QTableView. First I'll describe the conditions:
I have a QTableView with QSqlRelationalTableModel. I created one Dialog, to edit contents easier. Here is the problem:
When I open the Dialog, make changes etc. I can successfully update the values in the database, but a new row is added.
How can I fix this? -
wrote on 4 May 2011, 07:37 last edited by
Edit: I could fix it!
-
wrote on 4 May 2011, 09:25 last edited by
If you've found the solution by your own please post it here
-
wrote on 4 May 2011, 09:29 last edited by
The problem was that I overlooked, that there was an insert statement, just removed and it worked.
1/4