I want to detect the languages that are installed on my OS. To do that I an run:
qDebug() << QLocale::system();
// result = QLocale(English, Latin, UnitedStates)
but I want to save it in a QString, but it's not possible to do just:
QString langs = QLocale::system().toString();
How can I save this result in a string? Or is there a better way to detect OS languages? Another thing, is it possible to detect keyboard language settings (with Qt if possible)?