Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
5.11.3, 5.15.5
-
None
-
linux
Description
When QSettings reads the key value with English "", the "" will be dereferenced by QSettings by default.
For example, in the configuration file:
key="12345678"
Expect the key value read by QSettings to be: "12345678"
The actual value read is: 12345678
Solution 1: You can use the escape character to prevent the quotation marks from being dereferenced;
Solution 2: The WriteFunc function is provided in Qt's QSetting, so that the quotation marks are not dereferenced by registering the self-defined format reading method;
It is expected that Qt can provide corresponding solutions, and users do not need to implement this solution by themselves;