If I use a QSqlRelationalTableModel for representing a PostgreSQL database and then use QSqlRelationalTableModel::setRelation to set a foreign key, the data in the database isn't updated when I edit data in a tableView. If I remove the call to QSqlRelationalTableModel::setRelation everything works fine, but then I don't have dropdowns for the foreign data. I'm using Qt 4.3.5.
Does anyone else have this problem or know a solution?
Bookmarks