When using a QDataWidgetMapper connected to a QSqlTableModel with ManualSubmit policy, only the first field being mapped to an widget will be updated correctly on submit call.
Steps to reproduce:
- Start app
- Change the lineedits to 123 and 456
- Hit the button
- See how only 123 was submitted, the other one was set to bbbbb
If you set the Submitpolicy of the mapper to AutoSubmit, everything works as intended, even the manual call to submit when clicking the button.