Thanks ChrisW67.

Can i have another question please?
as you see in my code:
Qt Code:
  1. QSqlQuery query;
  2. query.exec("PRAGMA synchronous = OFF");
  3. model = new QSqlTableModel(this);
  4. model->setEditStrategy(QSqlTableModel::OnManualSubmit);
  5.  
  6. model->setTable("c1");
  7. model->select();
  8. model->insertRow(0);
  9. model->setData(model->index(0, 1), String(qdatetime.toString(Qt::ISODate)));
  10. model->setData(model->index(0, 2), String(qdatetime.toString(Qt::ISODate)));
  11. model->setData(model->index(0, 3), 1); // original value is 1 in int
  12. model->submitAll();
To copy to clipboard, switch view to plain text mode 

when i click 'stop' button, i want to change the value in last row. here is my code:
Qt Code:
  1. model->setTable("c1");
  2. model->select();
  3. int row = model->rowCount();
  4. model->setData(model->index(row, 3), 55); // change the value to be 55 in int
  5. model->sumitAll();
To copy to clipboard, switch view to plain text mode 

however, after i stop my program and take a look database, the last value in (row, 3) has not been changed.

can you point out where i did wrong please?
I really appreciate your help.