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

Aditya Mooley aditya.ml at gmail.com
Fri Mar 24 12:42:27 CET 2006


On 3/24/06, Rajeev J Sebastian <rajeev_jsv at dinamis.com> wrote:
>
> 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.

It is not possible to keep labels unique in my case. Looks like I have to
drop the idea of using Combo box and start using ListView instead.

Thanks a lot for your help.

Cheers,


--
Aditya Mooley
=============================================================
PHP Applications for E-Biz: http://www.sanisoft.com
Coppermine Picture Gallery: http://coppermine.sf.net
Koppermine KDE Client: http://koppermine.sf.net
=============================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-india/attachments/20060324/ef032dbf/attachment.html 


More information about the KDE-india mailing list