[KDE-India] Setting Value-Label pair for Combo box

Rajeev J Sebastian rajeev_jsv at dinamis.com
Fri Mar 24 12:36:23 CET 2006


On Friday 24 March 2006 16:24, Aditya Mooley wrote:
> Is it possible to have Value-Label pair in KComboBox like we have in HTML
> SELECT Element?
>
> I searched the KDE docs for the same but didn't found anything.
Subclass the Combobox and use a dictionary (QMap). Labels (combo items) are 
unique in a combobox, and can be mapped to values.

Regards,
Rajeev J Sebastian


More information about the KDE-india mailing list