On 3/24/06, <b class="gmail_sendername">Rajeev J Sebastian</b> &lt;<a href="mailto:rajeev_jsv@dinamis.com">rajeev_jsv@dinamis.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Friday 24 March 2006 17:12, Aditya Mooley wrote:<br>&gt; On 3/24/06, Rajeev J Sebastian &lt;<a href="mailto:rajeev_jsv@dinamis.com">rajeev_jsv@dinamis.com</a>&gt; wrote:<br>&gt; &gt; On Friday 24 March 2006 16:24, Aditya Mooley wrote:
<br>&gt; &gt; &gt; Is it possible to have Value-Label pair in KComboBox like we have in<br>&gt; &gt;<br>&gt; &gt; HTML<br>&gt; &gt;<br>&gt; &gt; &gt; SELECT Element?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I searched the KDE docs for the same but didn't found anything.
<br>&gt; &gt;<br>&gt; &gt; Subclass the Combobox and use a dictionary (QMap). Labels (combo items)<br>&gt; &gt; are<br>&gt; &gt; unique in a combobox, and can be mapped to values.<br>&gt;<br>&gt; It is not possible to keep labels unique in my case. Looks like I have to
<br>&gt; drop the idea of using Combo box and start using ListView instead.<br>If the label is not unique, then the user is going to find it difficult to use<br>the application. So, you would have to add another disambiguating element,
<br>perhaps another column of text or an icon. The combination of the 2 has to be<br>unique, in which case you can use a QMap.</blockquote><div><p>Actually, I was looking for something like OPTGROUP and OPTION like in HTML SELECT box. This seems impossible with KCombo.
</p><p>That's why I planned to shift to ListView.<br></p></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Regards,<br>Rajeev J Sebastian
<br>_______________________________________________<br>KDE-india mailing list<br><a href="mailto:KDE-india@kde.org">KDE-india@kde.org</a><br><a href="https://mail.kde.org/mailman">https://mail.kde.org/mailman</a>/listinfo/kde-india
<br></blockquote></div><br><br clear="all"><br>-- <br>Aditya Mooley<br>=============================================================<br>PHP Applications for E-Biz: <a href="http://www.sanisoft.com">http://www.sanisoft.com
</a><br>Coppermine Picture Gallery: <a href="http://coppermine.sf.net">http://coppermine.sf.net</a><br>Koppermine KDE Client: <a href="http://koppermine.sf.net">http://koppermine.sf.net</a><br>=============================================================