General組是QSetting默認的group,如果你的conf/ini文件中使用了該組,請不要指定組名訪問key

如果要使用這個組名,請務必在前面加百分號%

 

[General]
device=siware_1

[%General]
xyz=abcd

讀出的結果

("General/xyz", "Server/baseUrl", "Server/modelIdxAddr", "device",

 

注意,device前面沒有group名字