[Qt-interest] simple question about QComboBox

TP paratribulations at free.fr
Sat Mar 28 09:47:48 CET 2009


Felipe Romero Gonzalez wrote:

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

Ok, I have finally found a solution by looking at the source code of
QComboBox: reimplementing the paintEvent method of QComboBox. There is a
QStyleOptionComboBox->currentText that I had to modify inside paintEvent()
method, or initStyleOption() method.

-- 
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