PDA

View Full Version : QSqlTableModel Help pls



munna
7th March 2006, 18:51
Hi,

The setRecord(int row,QSqlRecord &) returns true, whereas the submitAll() returns false.
Can someone pls tell me what can be the problem?

lastError() is "No fields to update" whereas i have fields that need to be updated.

Pls Help

Thanks a lot.

wysota
7th March 2006, 20:40
Did you first fill the QSqlRecord object with field names from the model (for example by calling QSqlRecord rec = model->record())?