[Qt-interest] QSqlRelationalDelegate - changing value in QTableView
Martin Brodbeck
martin at brodbeck-online.de
Thu Nov 5 12:36:11 CET 2009
Hi all,
I have a database table, displayed in a QTableView, with a foreign key. The
table is editable. In order to change the foreign key value, I use a
QSqlRelationalDelegate. I can click on the table cell and change the value via
the ComboBox, thanks to the delegate, so it works in principle. But the change
is only stored in the database when I confirm the change with the Enter-key.
Simply change the value and click somewhere else on the UI does show the new
value, but it is not permanent.
Is this behaviour intended? It doesn't seem very user friendly to me, or am I
doing something wrong?
Thanks a lot
Martin
More information about the Qt-interest-old
mailing list