How to read a value using QSetting if the value contains comma character [duplicate]
问题 This question already has an answer here : QSettings::IniFormat values with “,” returned as QStringList (1 answer) Closed 5 years ago . In my QT project I am reading values from .ini file using QSettings. If the value contains comma character QSettings is not able to read it. How should I read such values? 回答1: Comma character is treated as list separator by QSettings . INI values with commas are parsed as string lists. You can convert a string list back to original string as follows: