[Interest] Language file resource loaded but UI not updating
Konstantin Shegunov
kshegunov at gmail.com
Fri Apr 30 14:59:22 CEST 2021
On Fri, Apr 30, 2021 at 9:42 AM Nicholas Yue <yue.nicholas at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210430/486da3af/attachment.html>
More information about the Interest
mailing list