haha! Like the Kim hint xD!
Well I've managed to solve the problem (partially!)
Now everytime I invoke the "next" slot, I get one nice row, where the user can input data, the unsolved part,however, is that I cannot write that row to the database.
In another example, I didn't set any edit strategy, and it worked fine, but with this particular model, I need some sort of control, I tried
model->setEditStrategy(QSqlTableModel::OnManualSubmit);
To copy to clipboard, switch view to plain text mode
and later on in the slot I would issue
model->submitAll();
model->submitAll();
To copy to clipboard, switch view to plain text mode
Yet no data is written, I'm confused with this one!
Bookmarks