[Android-development] Getting the default locale?

Harri Pasanen harri at mpaja.com
Sun Jun 1 20:19:45 CEST 2014


QLocale locale;
qDebug() << "bcp47" << locale.bcp47Name() << "country:" << 
locale.countryToString(locale.country());


Outputs:

bcp47 "" country: "Default"


which is not quite what I expected.

This on Nexus7 2013, Qt 5.2.2 and 5.3.0

Any advice?

Thanks,

Harri






More information about the Android-development mailing list