QSettings documentation bug

Discuss anything related to product development
Post Reply
seasoned_geek
Posts: 246
Joined: Thu Jun 11 2020 12:18 pm

QSettings documentation bug

Post by seasoned_geek »

Constructs a QSettings object to access the settings stored in the file called fileName, with parent parent. If the file does not already exist it is created.

If format is QSettings::NativeFormat the meaning of fileName depends on the platform. On Unix, fileName is the name of an INI file. On OS X, fileName is the name of a .plist file. On Windows fileName is a path in the system registry.
If one has QApplication values filled in and just calls

Code: Select all

QSettings *m_settings = new QSettings;
On Ubuntu 20.04 LTS (and probably all other Linux distros) you get a directory for Organization Name under $HOME/.config and ApplicationName.conf for the file. You don't get .INI. The contents are INI format, true.

Code: Select all

[General]
RecentFileDepth=10
SettingsExist=true

[EDT]
CARET\LINEVISIBLE=true
COLOR\BACK=@Variant(\0\0\0<\x1\xff\xff\n\n11XX\0\0)
COLOR\CARET=@Variant(\0\0\0<\x1\xff\xff\xfa\xfa\x9e\x9e\x18\x18\0\0)
COLOR\CARETBACK=@Variant(\0\0\0<\x1\xff\xffmmiill\0\0)
COLOR\GUTTERBACK=@Variant(\0\0\0<\x1\xff\xff\0\0\0\0\0\0\0\0)
COLOR\GUTTERFORE=@Variant(\0\0\0<\x1\xff\xff\xa9\xa9\xa9\xa9\xa9\xa9\0\0)
COLOR\HighlightBraces=true
COLOR\INDENTBACK=@Variant(\0\0\0<\x1\xff\xff\t\t\"\"??\0\0)
COLOR\INDENTFORE=@Variant(\0\0\0<\x1\x32\x32\xff\xff\xff\xff\0\0\0\0)
COLOR\MATCHED=@Variant(\0\0\0<\x1\x32\x32\xfd\xfd\xf3\xf3\xf3\xf3\0\0)
COLOR\TEXT=@Variant(\0\0\0<\x1\xff\xff\xf8\xf8\xf8\xf8\xf8\xf8\0\0)
COLOR\UNMATCHED=@Variant(\0\0\0<\x1\x32\x32\xd7\xd7\x1d\x1d\x1d\x1d\0\0)
COLOR\UseIndentGuides=true
FIND\History=it-is-end, :handle, DRAW-DATE, bool, Widget
FIND\Options=0
but the file is a .conf
Post Reply