gpt4 book ai didi

symbols - QSettings 在组名中添加百分号

转载 作者:行者123 更新时间:2023-12-04 02:52:46 26 4
gpt4 key购买 nike

我有 ini 格式的 QSettings 对象。
当我在 ini 文件中写入 settings.beginGroup("GENERAL") 时,我看到以下内容:
[%常规]

为什么会这样?

最佳答案

这里是 the answer :

The INI file format has severe restrictions on the syntax of a key. Qt works around this by using % as an escape character in keys. In addition, if you save a top-level setting (a key with no slashes in it, e.g., "someKey"), it will appear in the INI file's "General" section. To avoid overwriting other keys, if you save something using the a key such as "General/someKey", the key will be located in the "%General" section, not in the "General" section.

关于symbols - QSettings 在组名中添加百分号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17315270/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com