PDA

View Full Version : relaional model not updated



vincentb
8th December 2010, 14:11
Hello all,
here is my problem: I am developing a simple software that uses data from a sqlite file, display them in a QTableView associated with a SQLRelationalTable (2 tables with a foreign key)
The data are correctly displayed.
To edit data, I used the OnFieldChange strategy with standard delegate. I am able to modify the value double clicking on it but once validated (Enter pressed) the data changes back to previous value :confused: (connecting the dataChanged model showed the previous value)
I decided to create a distinct dialog with a mapper to edit the data. The values are correctly changed in the view but when I sort columns everything gets back to initial data... There's something I do not understand...
Please help

Vincent
QT4.7.1 on Windows XP SP2