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

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


  • Lifetime Qt Champion


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

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



  • Lifetime Qt Champion

    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

  • 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)
    switch (e->type()) {
    case QEvent::LanguageChange:

    So, obviously your guess was right, SGaist!

    Thanks, again and have a nice weekend,


  • Lifetime Qt Champion

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

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