Obsolete Members for QDesktopServices

The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Types

enum StandardLocation { DesktopLocation, DocumentsLocation, FontsLocation, ApplicationsLocation, ..., CacheLocation } (obsolete)

Member Type Documentation

enum QDesktopServices::StandardLocation

Use QStandardPaths::StandardLocation

This enum describes the different locations that can be queried by QDesktopServices::storageLocation and QDesktopServices::displayName.

ConstantValueDescription
QDesktopServices::DesktopLocation0Returns the user's desktop directory.
QDesktopServices::DocumentsLocation1Returns the user's document.
QDesktopServices::FontsLocation2Returns the user's fonts.
QDesktopServices::ApplicationsLocation3Returns the user's applications.
QDesktopServices::MusicLocation4Returns the users music.
QDesktopServices::MoviesLocation5Returns the user's movies.
QDesktopServices::PicturesLocation6Returns the user's pictures.
QDesktopServices::TempLocation7Returns the system's temporary directory.
QDesktopServices::HomeLocation8Returns the user's home directory.
QDesktopServices::DataLocation9Returns a directory location where persistent application data can be stored. QCoreApplication::applicationName and QCoreApplication::organizationName should work on all platforms.
QDesktopServices::CacheLocation10Returns a directory location where user-specific non-essential (cached) data should be written.

This enum was introduced or modified in QtGui 4.4.

See also storageLocation() and displayName().