In accordance with the documents, you must indicate the name of the organization and the name of the application:
QCoreApplication::setOrganizationName("My Organization");
QCoreApplication::setApplicationName("My Application");
QSettings settings;
Or directly in the constructor:
QSettings settings("My Organization", "My Application");
This will create a registry entry HKCU\SOFTWARE\My Organization\My Applicationto save your settings (on Windows).
QCoreApplication:: setOrganizationName() QCoreApplication:: setApplicationName() , QSettings - , status() AccessError.