PDA

View Full Version : the method named "select()" of QSqlTableModel



silentyears
15th June 2014, 14:42
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!


for()
{
...
QSqlTableModel model;
model->setEditStrategy(QSqlTableModel::OnManualSubmit);
model.setTable("tableA");
model.select();
model.insertRow(0);
...
model.submitAll();
}

silentyears
16th June 2014, 06:35
anybody knows?

wysota
16th June 2014, 10:14
What is the problem exactly? That something works? :)