Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Two languages in the same application at the same time
Forum Updated to NodeBB v4.3 + New Features

Two languages in the same application at the same time

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 662 Views 1 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.
  • M Offline
    M Offline
    merieinyels
    wrote on last edited by
    #1

    Hello, I have looking but I have not found any question related to this issue.

    I now how to change the language at the application level using this:
    @qApp->installTranslator(mTranslator);@

    I would like to know if there is any way to have two main windows belonging to the same application showing different language. I should mention that both windows should support both languages and they can be selected by the user.

    Thank you in advance.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Salvatello
      wrote on last edited by
      #2

      you've tried to do here?

      "http://qt-project.org/doc/qt-4.8/qtranslator.html":http://

      1 Reply Last reply
      0
      • M Offline
        M Offline
        merieinyels
        wrote on last edited by
        #3

        I know the QTranslator class and I use it, but I am looking for a mechanism to limit that the translation was only applied to the QMainWindow that I choose.

        My application is compounded by several QMainWindows. and I would like to manage the language independently in each window although all of them were part of the same application. I cannot use different Translators for each window due they share common strings.

        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