[Qt-interest] Submitting changes in a QTableView

Lars Amsel lars.amsel at signalion.com
Wed Jul 8 16:43:42 CEST 2009


Hi,

I have a QTableView with an editable model that is derived from 
QAbstractListModel. Furthermore there is toolbar button that should do some 
calculations with the values of the table view. Because the toolbar button is 
not focusable the table doesn't loose the focus and the current edited value 
is not commited to the model.
How do I ask the table to stop editing and commit remaining changes? Sure I 
could send a return key to the current editor, but that doesn't seem to be the 
most elegant way.

regards

Lars



More information about the Qt-interest-old mailing list