Skip to content

Instantly share code, notes, and snippets.

@AlekSi
Created February 28, 2009 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlekSi/72010 to your computer and use it in GitHub Desktop.
Save AlekSi/72010 to your computer and use it in GitHub Desktop.
#include <QtCore/QCoreApplication>
#include <QtGui/QDesktopServices>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug("before: %s", qPrintable(QDesktopServices::storageLocation(QDesktopServices::DataLocation)));
a.setApplicationName("AppName");
a.setApplicationVersion("1.0");
a.setOrganizationName("OrgName");
a.setOrganizationDomain("name.org");
qDebug("after: %s", qPrintable(QDesktopServices::storageLocation(QDesktopServices::DataLocation)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment