Two languages in the same application at the same time

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

    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.

  • you've tried to do here?


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

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.