Friday, 15 January 2010

qt - QSettings and sections containing spaces -



qt - QSettings and sections containing spaces -

i utilize qsettings edit .desktop menu entries. that: dfile qstring - absolute file path

qsettings set(dfile, qsettings::iniformat); qdebug() << "editing " << set.filename(); set.begingroup("desktop entry"); // set whatever need set.endgroup();

but when .desktop file saved,

[desktop%20entry] encoding=utf-8 version=1.0 # , etc.

instead of

[desktop entry] encoding=utf-8 version=1.0 # , etc.

what doing wrong? thanks

you not doing wrong. space encoded %20 using html url encoding. can read settings back, right?

qt menu char settings space

No comments:

Post a Comment