Quote Originally Posted by wysota View Post
Call QAbstractItemDelegate::commitData() on your editor before closing it.
How would I do this? QItemDelegate only has methods to create an editor but deletes it on its own.

I had a look at the Qt doc example http://doc.trolltech.com/4.2/itemvie...xdelegate.html and they want me to install an event filter: "We install an event filter on the spin box to ensure that it behaves in a way that is consistent with other delegates. The implementation for the event filter is provided by the base class."

I then had a look at QItemDelegate but there they do not install an event filter in createEditor so why should I do (I tried and it did not help with my problem).

Why do the standard Qt ItemDelegates (QComboBox, QSpinBox, QLineEdit) work as expected? When do they call commitData?

Thanks in advance,
-Jens