Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to detect the current language on Windows (I need the Qt way)
mrdebug last edited by mrdebug
According with this post,
the line of code
returns the value pointed from the red arrow. I need to have back the value of the green arrow.
Which is the right Qt way?
Do you mean both the name and the country name ?
No, I need only the selected language.
For example I need "it" when italian language is selected, "en" when english language is selected.
Then maybe, QLocale::uiLanguages is what you are looking for.
Or just check what a default constructed
Ok, I try
Sorry but I was wrong. The green arrow indicates the keyboard layout, not the current language. So
So everything is working as expected ?
Yes it is
Then please mark the thread as solved :)