Qt-interest Archive, March 2002
Getting current value of combo box
Message 1 in thread
Hi all,
Is it possible to link a value to each item in a QComboBox list so that
this value can be read in addition to the index and the text (the way it's
done in HTML form submission)? I know this can be achieved by subclassing
QComboBox and adding functions such as:
insertItem( const QString& text, int index, const QString& value );
insertItem( const QPixmap& pixmap, int index, const QString& value );
QString currentValue(); // returns the current value
But, I want to know first if there is an easier way.
Thanks,
--
[ signature omitted ]