Fill a data record in the beforeInsert slot
Hi,
Imagine i have this:
Code:
{
record.setValue("id", generateId("tablename"));
record.setValue("a", "xxx");
record.setValue("b", "yyy");
...
}
void Dialog::insertX()
{
int row = model->rowCount();
model->insertRow(row);
// ???
}
What showl i type in the // ??? in order to have model and view sinchronized when no editing is necessary?
Thanks
Re: Fill a data record in the beforeInsert slot
grrrrr ... christ!!
Must be related to the http://doc.trolltech.com/4.5/qsqltab...tStrategy-enum because after a model->submitall(); it is working fine.