Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Multiple language selection
Forum Updated to NodeBB v4.3 + New Features

Multiple language selection

Scheduled Pinned Locked Moved Brainstorm
4 Posts 3 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    karthi shan
    wrote on last edited by
    #1

    Hi everyone,
    I am developing a application like that, if i chose to other language like French (means other than English) my entire application will change to selected language. I referred some sample codes also, but it is not working. If any one did this type of application development can you please help me.
    Can you please advise me how to do this or if have any sample code please share for my reference, it helps me.
    Regards
    Karthick

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Huulivoide
      wrote on last edited by
      #2

      I am not sure if I understood correctly, but is this what you mean:

      Add "settings" widget with list of supported languages and when the
      user select a new language from the list the application changes to
      use that language?

      If that is what you meant then what you need to do is to
      create and install a new QTranslator object to your window.
      You also need to override void QWidget::changeEvent(QEvent * event)
      in your window class. You need to call reTranslate() function from there,
      providing that you are using Qt Designer/Creator created UI. You also
      need to manually retranslate all manually created string in the event

      1 Reply Last reply
      0
      • K Offline
        K Offline
        karthi shan
        wrote on last edited by
        #3

        Thanks for reply,
        That's what i want, if you have any sample codes or links can you share me please.

        thank you once again.
        Regards
        Karthick

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          It's all explained here

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved