feraudyh
19th March 2014, 18:29
Hi all,
I am getting bizarre behaviour from QSettings
I want to use it with an ini file.
so I do something like this
m_settings = new QSettings("settings.ini",QSettings::IniFormat);
Now if I have a first "section"( beginning with [Env]) then all settings in that section are ignored: reading with m_settings->value(...) returns the "fallback" value.
The following sections are properly read however
Now if I precede by first section with a comment starting with # then mysteriously all settings in that ini file are read properly.
Is this a bug or a feature or is a Byte Order Mark doing its dirty work here?
I am getting bizarre behaviour from QSettings
I want to use it with an ini file.
so I do something like this
m_settings = new QSettings("settings.ini",QSettings::IniFormat);
Now if I have a first "section"( beginning with [Env]) then all settings in that section are ignored: reading with m_settings->value(...) returns the "fallback" value.
The following sections are properly read however
Now if I precede by first section with a comment starting with # then mysteriously all settings in that ini file are read properly.
Is this a bug or a feature or is a Byte Order Mark doing its dirty work here?