Hold on, if I create a QSettings() object right after the application name is set, the path the setting file will be located will look as follows: ~/.config/qt-project.org/AppName.conf.
If I create it with QSetting("", UCApplication::instance().applicationName()), the file path will be ~/.config/Unknown Organization/AppName.conf.
Seems the QCoreApplication::organizationName = "" wasn't good enough. If I set the organizationName to the same as applicationName, then the setting file will be in ~/.config/AppName/AppName.conf
Hold on, if I create a QSettings() object right after the application name is set, the path the setting file will be located will look as follows: ~/.config/ qt-project. org/AppName. conf. :instance( ).applicationNa me()), the file path will be ~/.config/Unknown Organization/ AppName. conf.
If I create it with QSetting("", UCApplication:
Seems the QCoreApplicatio n::organization Name = "" wasn't good enough. If I set the organizationName to the same as applicationName, then the setting file will be in ~/.config/ AppName/ AppName. conf