[Qt-interest] How to get QComboBox selected item text to use in setModelData?
Linux User
linuxuser at gmx.us
Tue Jun 1 13:41:19 CEST 2010
Hello,
I am writing custom delegate to show qcombobox when user wants to edit
specific cell. I am using qsqltablemodel assigned to qtableview. My
update mode is OnFieldChange. I notice that when I try to change value
of qcombobox it is always reverted back to default mode. So setModelData
of my delegate obviously cannot extract selected value and update
database accordingly. I looked at default implementation of setModelData
and figured out that qcombobox probably does not have property marked
with USER flag. What am I missing here??
Thanks!
More information about the Qt-interest-old
mailing list