[Qt-interest] simple question about QComboBox

Felipe Romero Gonzalez fjromerog at gmail.com
Wed Mar 25 16:40:15 CET 2009


you can try to remove one item and add other one... or use the method that
makes your combo editable. Is a suggestion

Cheers

Felipe



2009/3/25 TP <paratribulations at free.fr>

> On Wednesday 25 March 2009 01:21:17 Felipe Romero Gonzalez wrote:
>
> > You can try with the signal and try to catch it on a slot. Check this
> signal
> >  void QComboBox::currentIndexChanged ( const
> > QString<http://doc.trolltech.com/4.4/qstring.html>&
> > *text* )
>
> I have found this method in Qt Assistant: a signal is emitted whenever the
> index of QComboBox is changed, with the current text attached. But how to
> modify the text displayed by QComboBox? I have not found any method to do
> this.
>
> Julien
>
> --
> python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\
> 9&1+,\'Z4(55l4('])"
>
> "When a distinguished but elderly scientist states that something is
> possible, he is almost certainly right. When he states that something is
> impossible, he is very probably wrong." (first law of AC Clarke)
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090325/8526c2af/attachment.html 


More information about the Qt-interest-old mailing list