scarleton
4th October 2010, 01:28
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:
_model->setFilter(QString("PARISHNER_ID = %1").arg(parishionerId));
_model->select();
_mapper->toFirst();
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?
As I said in the other post, the final three lines of the constructor are currently:
_model->setFilter(QString("PARISHNER_ID = %1").arg(parishionerId));
_model->select();
_mapper->toFirst();
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?