when i use the method as follows, i find that sometimes select() return false and the next methods can still
work! who knows why or any tips?
Thanks very much!
Qt Code:
  1. for()
  2. {
  3. ...
  4. model->setEditStrategy(QSqlTableModel::OnManualSubmit);
  5. model.setTable("tableA");
  6. model.select();
  7. model.insertRow(0);
  8. ...
  9. model.submitAll();
  10. }
To copy to clipboard, switch view to plain text mode