Hello,

how can i display some values from my database and write it back?

That is my QSqlQueryModel
Qt Code:
  1. model->setQuery("SELECT * FROM Experiment"
  2. "INNER JOIN Temperatur ON Experiment.ExperimentID = Temperatur.ExperimentID"
  3. "INNER JOIN Qualities ON Experiment.ExperimentID = Qualities.ExperimentID");
To copy to clipboard, switch view to plain text mode 
I set the model to a QDataWidgetMapper and add mapping for my QSliders
Qt Code:
  1. mapper->setModel(model);
  2. mapper->setItemDelegate(new QSqlRelationalDelegate(this));
  3. mapper->addMapping(ui.qslider_min, model->record(int_row)->indexOf("min"));
  4. mapper->addMapping(ui.qslider_max, model->record(int_row)->indexOf("max"));
  5. mapper->toFirst();
To copy to clipboard, switch view to plain text mode 
The submit fails every time
Qt Code:
  1. mapper->submit();
To copy to clipboard, switch view to plain text mode 
How can i write back the slider-values to my database? Can you help me please?

Thanks in Advance