[Qt-interest] Problem with editing items in ListView

Radosław Papierski thraden at gmail.com
Thu Sep 3 09:23:48 CEST 2009


Hi,
I have a QSqlTableModel set to a QListView. The widget is in a QDialog. The
problem if item is being edited at the moment I do accept() on the dialog,
the changes are lost. I tried to close the editor programatically by doing
closePersistentEditor() but that doesn't submit the changes to the model. Is
there any way to close an editor without losing the data? Or maybe a way to
access what is being input in the editor?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090903/95fc1621/attachment.html 


More information about the Qt-interest-old mailing list