Trigger QEvent::LanguageChange
Solved
QML and Qt Quick
-
I would created a class that handles the loading/unloading of QTranslator objects. You can then use an instance of it as a context property so you can call the method you want to change the language.
-
@SGaist Sorry, I am just getting back to this. So, I guess I am not seeing in the link you posted how I might trigger the event in C++ either. I have a signal, lets call it:
currentLocaleChanged();
is there a simple way toconnect
that signal s/t it will trigger the event? -
I would created a class that handles the loading/unloading of QTranslator objects. You can then use an instance of it as a context property so you can call the method you want to change the language.