QStandardPaths::ConfigLocation does take into account ApplicationName and OrganizationName on Windows but doesn't on Linux.
main.cpp
#include <QCoreApplication> #include <QStandardPaths> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); qDebug("%s", qPrintable(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation))); a.setApplicationName("AppName"); a.setOrganizationName("OrgName"); qDebug("%s", qPrintable(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation))); return 0; }
Output from Windows 7
ะก:/Users/nurupo/AppData/Local/executable-name C:/Users/nurupo/AppData/Local/OrgName/AppName
Output from Ubuntu 13.10
/home/nurupo/.config /home/nurupo/.config