str1=\x430\x431\x432\x433\x434....str2=\x44d\x44e\x44f...
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("cp-1251"));
str1=\xe0\xe1\xe2\xe3\xe4....str2=\xfd\xfe\xff...
void QSettings::setIniCodec ( QTextCodec * codec )иvoid QSettings::setIniCodec ( const char * codecName )
QSettings settings("test.ini", QSettings::IniFormat); settings.setIniCodec("windows-1251");QString str;settings.setValue("str1", "абвгд");str = settings.value("str1", "");settings.setValue("str2", str);QMessageBox::warning(NULL, "hello", str);