PDA

View Full Version : How to manage QSqlTableModel database operations?



Abk
8th September 2007, 20:23
Hellow.

I have master-detail server model and QSqlTableModel for each database table.
How can I first to delete only recodrs, then to insert only records and last to update only records? Because, If I will say "submitAll" for each model I can get "Parent key not found" error message. Correctly, I must to delete records, then to insert records and last to update records.

Thank you.

wysota
19th September 2007, 11:44
Could you prepare a minimal compilable example reproducing the problem?