[Qt-interest] simple question about QComboBox

TP paratribulations at free.fr
Wed Mar 25 09:37:08 CET 2009


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)




More information about the Qt-interest-old mailing list