settings.setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath())
the resulting actual settings file is set to:
if the same call is made on another QSettings object in the same app, the same file is set to
which should be the same as for the first object, but it is not. Actually, even that is not fully correct either. The correct one should be
where <APP_NAME> is QCoreApplication::applicationName(). The user might decide to set another path inside QDir::homePath(), QSettings has to follow accordingly.
Additionally, the documentation does not mention this aspect at all:
This has be to correct as well.
Please verify the Qt5 implementation of the same use case.