pippo42
22nd January 2010, 13:20
Hello,
I am trying to modify a QSqlRecord in a QSqlRelationalTableModel but it does not work.
If I do so and read the data after, I still obtain the old value.
model->record(i_model).setValue("param1", QVariant("TEST"));
cout << model->record(i_model).value("param1").toString().toStdString() << "\n"
If I try the example above, the second line displays the previous value instead of "TEST".
Thank you.
I am trying to modify a QSqlRecord in a QSqlRelationalTableModel but it does not work.
If I do so and read the data after, I still obtain the old value.
model->record(i_model).setValue("param1", QVariant("TEST"));
cout << model->record(i_model).value("param1").toString().toStdString() << "\n"
If I try the example above, the second line displays the previous value instead of "TEST".
Thank you.