PDA

View Full Version : Dynamic translation for ComboBox



Rakesh_Kumar
24th February 2009, 10:51
Hi,

I have implemented the Dynamic translation for my form as it given in the following link. http://wiki.qtcentre.org/index.php?title=Dynamic_translation_in_Qt4_applica tions

I am creating my widgets dynamically i.e not by the designer.
It works fine for the labels but it's not working for updating the contents of the QComboBox.

I am creating a QStringList for all the contents of ComboBox. Then I use addItems() for adding the list to combobox.

In the Override method QWidget::changeEvent() I clear the QStringList and then creates a new QStringList before adding it. But it does not works.

It retains the intial loaded value. After I removeTranslator and install new translator also the strings does not change.

Please help me to resolve the issue.

Thanks in advance.

Regards
Rakesh

jogeshwarakundi
24th February 2009, 11:27
Can you post your code here please?