QLocale and QSettings
问题 Premise: I'm on osx using qt5.7 I've changed the decimal separator in the System Preferences - Language and Region - Advanced to use the comma: I have a problem in storing/restoring the QLocale value via QSettings . This is the main.cpp : #include <QSettings> #include <QDebug> void printLocale(QString header, QLocale locale) { qDebug() << QLocale::languageToString(locale.language()) << QLocale::scriptToString(locale.script()) << QLocale::countryToString(locale.country()) << locale