[Qt-interest] Multiple QSqlTableModel instances for the same table

Petric Frank pfrank at gmx.de
Mon Jul 19 19:01:16 CEST 2010


Hello,

i have a question. If i do at different locations (given default connection is 
established to a database) in the same application:

Location 1:

QSqlTableModel * model_1 = new QSqlTableModel (this);
model_1->setTable ("TestTable");


Location 2:

QSqlTableModel * model_2 = new QSqlTableModel (this);
model_2->setTable ("TestTable");

model_2->setData (.....)


Does model_1 recognize that the data of the table he is assigned to have been 
updated ?

EditStrategy is set to OnFieldChange on both instances.

regards
  Petric



More information about the Qt-interest-old mailing list