I use an QTableView and a Qrelationaltablemodel
Further i use a MYSQL view (so not a table)
QSqlRelation rel("tablename", "tableid", "name");
model->setRelation(1,rel);
When i use a mysql table there is no problem, but with a mysqlview i cannot update
and i get the message:
Unable to execute statement:
"[MySQL][ODBC 5.1 Driver][mysqld-5.1.48-community]Unknown column 'name' in 'where clause'"

Is there a way to change the Updatequery??

Kind regards
Carel