Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[SOLVED]QSettings does not return strings containing commas correctly

$
0
0
Hello, I am using the QSettings object to read an IniFormat file. I find that it will not return the correct string when commas are present. For example: When something like… [SECTION] Value=1,2,4 is read, the result of doing mySettings.value("Section/Value","").ToString(); would be “1”. everything after the first comma is ignored. Can anyone please clarify if this is this the normal behaviour? I cannot find any mention of such behaviour in the documentation. Any suggestions as to to what one might do to work around this. Unfortunately I cannot change the contents of the INI file. Many thanks.

Viewing all articles
Browse latest Browse all 18427

Trending Articles