PDA

View Full Version : QSqlRelationalTableModel/QTableView question



graciano
20th February 2010, 17:08
Sorry ... could not think of a better title.
In this model i allow editing on the PK column, wish means that if it changes to a new valid value the model is updated and everything goes as expected.
If i deliberately force the PK duplication the view accepts the values but when i refresh it still shows the previous value as expected.
What is the better way for me to solve this situation?

Thanks