On Fri, Apr 30, 2021 at 9:42 AM Nicholas Yue <[email protected]> wrote:

> Hi,
>

Hi,

  What function do I need to call to tell the application that I have
> loaded a language file and to use it ?
>

You install the translator to the application. For newly initialized forms
- nothing more is to be done, however for forms that were already
initialized into a widget you need to call `retranslateUi()` (generated by
the designer) to have an observable effect.

Take a look here as well:
https://doc.qt.io/qt-6/qcoreapplication.html#installTranslator
https://doc.qt.io/qt-6/internationalization.html#dynamic-translation
_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest

Reply via email to