[Qt-interest] no comma for string type value in an INI format file?

Yan Jiangguo (James) jyan972 at gmail.com
Sun Oct 18 22:13:07 CEST 2009


hey all,

I have an INI file like this one:[mykey]
mystr = 0,1,2,3,

then i try to read the string in with QSetttings :
QString mystr = qset.value("mykey/mystr").toString();
but, the result of mystr is ""

if i change the mystr in INI file like this one:
mystr = 0123

then mystr will "0123" correctly after reading with QSetttings, what's wrong
with it, no comma in INI file for string type value?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091019/559b51e3/attachment.html 


More information about the Qt-interest-old mailing list