Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] What does QtDesigner option "Support for changing languages at runtime" do?
Forum Update on Monday, May 27th 2025

[SOLVED] What does QtDesigner option "Support for changing languages at runtime" do?

Scheduled Pinned Locked Moved Qt Creator and other tools
runtimeqtdesigneroptionslanguagechangelanguage
6 Posts 2 Posters 3.4k Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on 24 Sept 2015, 07:56 last edited by A Former User 10 Jun 2015, 07:09
    #1

    Hello to all,

    does anybody know what the QtDesigner option "Support for changing languages at runtime" (in Options - Designer - Class Generation - Code Generation) does?

    I've just come across this option, but couldn't find any documentation nor any change when set and trying to insert a new mainwindow/widget designer form class. Maybe someone has an idea?

    Kind regards,

    Markus

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Sept 2015, 21:19 last edited by
      #2

      Hi,

      Just a guess but I think it's related to this

      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
      • ? Offline
        ? Offline
        A Former User
        wrote on 25 Sept 2015, 07:42 last edited by
        #3

        Hello SGaist,

        thanks for your input!

        Yes, i could also think of this feature being meant to automatically reimplement the changeEvent function. However, enabling the option described above seemed to have no effect. But maybe I simply did something wrong (or expected something wrong).

        Greetings,

        Markus

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 25 Sept 2015, 22:57 last edited by
          #4

          It might also be a bug in Qt Creator. You can check that with the Qt Creator developers/maintainers on the qt-creator mailing list

          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
          • ? Offline
            ? Offline
            A Former User
            wrote on 2 Oct 2015, 12:41 last edited by
            #5

            Now, after creating another new QtCreator project with the "Support for changing languages at runtime" option enabled, I saw that it automatically reimplements the event handler "changeEvent":

            void MainWindow::changeEvent(QEvent *e)
            {
            QMainWindow::changeEvent(e);
            switch (e->type()) {
            case QEvent::LanguageChange:
            ui->retranslateUi(this);
            break;
            default:
            break;
            }
            }*

            So, obviously your guess was right, SGaist!

            Thanks, again and have a nice weekend,

            Markus

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 2 Oct 2015, 21:09 last edited by
              #6

              You're welcome !

              Good to know :)

              Since we know now that it's working, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

              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

              2/6

              24 Sept 2015, 21:19

              topic:navigator.unread, 4
              • Login

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