Phase one was creating the form to edit an existing row using QSqlTableModel/QDataWidgetMapper. I figured that out, and in the process, learned a lot. After digging around a bit, I cannot figure out how to go about adding a whole new row.
As I said in the other post, the final three lines of the constructor are currently:
Qt Code:
_model->select(); _mapper->toFirst();To copy to clipboard, switch view to plain text mode
How do I go about getting the model to a row that does not exist as of yet? so a new parishner can be added?
Bookmarks