Some questions on QSettings settings(filePath,QSettings::IniFormat);
-
As I understand , QSettings settings(filePath,QSettings::IniFormat) is to create QSettings object from file and the file is in ini format.
In my case the os is linux and the user file is in .conf file format . The user .conf file is in same format when the tools save thes file
// app setting needed for QSettings
184 setOrganizationDomain("abc.com");
185 setOrganizationName("ABC");
186 setApplicationName(XYZPRODUCT_NAME);My query is in the example is settings file
object%20 color = #00ffff
now questions is why os %20 is inserted in .conf file for spaces in key name ?
-
As I understand , QSettings settings(filePath,QSettings::IniFormat) is to create QSettings object from file and the file is in ini format.
In my case the os is linux and the user file is in .conf file format . The user .conf file is in same format when the tools save thes file
// app setting needed for QSettings
184 setOrganizationDomain("abc.com");
185 setOrganizationName("ABC");
186 setApplicationName(XYZPRODUCT_NAME);My query is in the example is settings file
object%20 color = #00ffff
now questions is why os %20 is inserted in .conf file for spaces in key name ?
@Qt-Enthusiast
try avoiding blanks in the key name when writing settings values. -
what is significance of NativeFormat and how it is different from IniFormat
-
what is significance of NativeFormat and how it is different from IniFormat
@Qt-Enthusiast
see the docs -
@Qt-Enthusiast
see the docsI already went through but
On Unix, this means textual configuration files in INI format. so on unix it is same as ini format
-
I already went through but
On Unix, this means textual configuration files in INI format. so on unix it is same as ini format
On Unix, NativeFormat and IniFormat mean the same thing, except that the file extension is different (.conf for NativeFormat, .ini for IniFormat).