I have a QSqlRelationalTableModel with one QTableView of it.
After you change data on a row... visually the table goes to the top, difficulting the entry of sequencial data with tabulations or clicking on another position.
Printable View
I have a QSqlRelationalTableModel with one QTableView of it.
After you change data on a row... visually the table goes to the top, difficulting the entry of sequencial data with tabulations or clicking on another position.
How do you change that data? Do you call select() somewhere?
When using
I save with
Code:
my_model.submitAll();
When using
I don't save manually.
After saving, occurs a "reselect" and the table position goes to the beginning.
The position must go to next field when ending an edition with tab key. And when clicking on another position while we are in edit mode must go to that position, not to the beginning.
Thank you