Results 1 to 2 of 2

Thread: Dynamic translation for ComboBox

  1. #1
    Join Date
    Sep 2008
    Posts
    32
    Thanks
    7

    Default Dynamic translation for ComboBox

    Hi,

    I have implemented the Dynamic translation for my form as it given in the following link. http://wiki.qtcentre.org/index.php?t...4_applications

    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

  2. #2
    Join Date
    Dec 2007
    Posts
    40
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Dynamic translation for ComboBox

    Can you post your code here please?
    Let your work talk for you

Similar Threads

  1. How avoid translation of dynamic properties
    By thomas_-_s in forum Qt Tools
    Replies: 1
    Last Post: 19th October 2008, 22:02
  2. Replies: 27
    Last Post: 16th May 2008, 07:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.