The QStandardPaths class provides methods for accessing standard paths. More.
KALORIK DIGITAL AIR FRYER 3.5 qt (FT 45103 BK) has 3.3L / 3.5 qt. It let you fry, bake, roast or grill your favorite food with little to no oil. This air fryer has powerful air frying technology with rapid hot air circulation cooks food 30% faster. It also has removable, dishwasher safe parts for easy clean-up. Set of (5) 6 Quart Storage Boxes: 1645: Set of (2) 16 Quart Storage Boxes Hinged Lid Clears. 1914: 48 Quart Hinged Lid Storage Box Latching Storage Boxes. 1492: 6 Quart Latching Box: 1494: 15 Quart Latching Box: 1495: 25 Quart Latching Box: 1496: 32 Quart Latching Box: 1497: 64 Quart Latching Box: 1498: 56 Quart Wheeled Latching Box.
Header: | #include |
qmake: | QT += core |
Since: | Qt 5.0 |
This class was introduced in Qt 5.0.
Public Types
enum | LocateOption { LocateFile, LocateDirectory } |
flags | LocateOptions |
enum | StandardLocation { DesktopLocation, DocumentsLocation, FontsLocation, ApplicationsLocation, MusicLocation, …, AppConfigLocation } |
Static Public Members
QString | displayName(QStandardPaths::StandardLocation type) |
QString | findExecutable(const QString &executableName, const QStringList &paths = QStringList()) |
QString | locate(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options = LocateFile) |
QStringList | locateAll(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options = LocateFile) |
void | setTestModeEnabled(bool testMode) |
QStringList | standardLocations(QStandardPaths::StandardLocation type) |
QString | writableLocation(QStandardPaths::StandardLocation type) |
Detailed Description
This class contains functions to query standard locations on the local filesystem, for common tasks such as user-specific directories or system-wide configuration directories.
Member Type Documentation
enum QStandardPaths::LocateOption
flags QStandardPaths::LocateOptions
This enum describes the different flags that can be used for controlling the behavior of QStandardPaths::locate and QStandardPaths::locateAll.
Constant | Value | Description |
---|---|---|
QStandardPaths::LocateFile | 0x0 | return only files |
QStandardPaths::LocateDirectory | 0x1 | return only directories |
The LocateOptions type is a typedef for QFlags. It stores an OR combination of LocateOption values.
enum QStandardPaths::StandardLocation
This enum describes the different locations that can be queried using methods such as QStandardPaths::writableLocation, QStandardPaths::standardLocations, and QStandardPaths::displayName.
Some of the values in this enum represent a user configuration. Such enum values will return the same paths in different applications, so they could be used to share data with other applications. Other values are specific to this application. Each enum value in the table below describes whether it's application-specific or generic.
Application-specific directories should be assumed to be unreachable by other applications. Therefore, files placed there might not be readable by other applications, even if run by the same user. On the other hand, generic directories should be assumed to be accessible by all applications run by this user, but should still be assumed to be unreachable by applications by other users.
Data interchange with other users is out of the scope of QStandardPaths.
Constant | Value | Description |
---|---|---|
QStandardPaths::DesktopLocation | 0 | Returns the user's desktop directory. This is a generic value. On systems with no concept of a desktop, this is the same as QStandardPaths::HomeLocation. |
QStandardPaths::DocumentsLocation | 1 | Returns the directory containing user document files. This is a generic value. The returned path is never empty. |
QStandardPaths::FontsLocation | 2 | Returns the directory containing user's fonts. This is a generic value. Note that installing fonts may require additional, platform-specific operations. |
QStandardPaths::ApplicationsLocation | 3 | Returns the directory containing the user applications (either executables, application bundles, or shortcuts to them). This is a generic value. Note that installing applications may require additional, platform-specific operations. Files, folders or shortcuts in this directory are platform-specific. |
QStandardPaths::MusicLocation | 4 | Returns the directory containing the user's music or other audio files. This is a generic value. If no directory specific for music files exists, a sensible fallback for storing user documents is returned. |
QStandardPaths::MoviesLocation | 5 | Returns the directory containing the user's movies and videos. This is a generic value. If no directory specific for movie files exists, a sensible fallback for storing user documents is returned. |
QStandardPaths::PicturesLocation | 6 | Returns the directory containing the user's pictures or photos. This is a generic value. If no directory specific for picture files exists, a sensible fallback for storing user documents is returned. |
QStandardPaths::TempLocation | 7 | Returns a directory where temporary files can be stored. The returned value might be application-specific, shared among other applications for this user, or even system-wide. The returned path is never empty. |
QStandardPaths::HomeLocation | 8 | Returns the user's home directory (the same as QDir::homePath()). On Unix systems, this is equal to the HOME environment variable. This value might be generic or application-specific, but the returned path is never empty. |
QStandardPaths::DataLocation | 9 | Returns the same value as AppLocalDataLocation. This enumeration value is deprecated. Using AppDataLocation is preferable since on Windows, the roaming path is recommended. |
QStandardPaths::CacheLocation | 10 | Returns a directory location where user-specific non-essential (cached) data should be written. This is an application-specific directory. The returned path is never empty. |
QStandardPaths::GenericCacheLocation | 15 | Returns a directory location where user-specific non-essential (cached) data, shared across applications, should be written. This is a generic value. Note that the returned path may be empty if the system has no concept of shared cache. |
QStandardPaths::GenericDataLocation | 11 | Returns a directory location where persistent data shared across applications can be stored. This is a generic value. The returned path is never empty. |
QStandardPaths::RuntimeLocation | 12 | Returns a directory location where runtime communication files should be written, like Unix local sockets. This is a generic value. The returned path may be empty on some systems. |
QStandardPaths::ConfigLocation | 13 | Returns a directory location where user-specific configuration files should be written. This may be either a generic value or application-specific, and the returned path is never empty. |
QStandardPaths::DownloadLocation | 14 | Returns a directory for user's downloaded files. This is a generic value. If no directory specific for downloads exists, a sensible fallback for storing user documents is returned. |
QStandardPaths::GenericConfigLocation | 16 | Returns a directory location where user-specific configuration files shared between multiple applications should be written. This is a generic value and the returned path is never empty. |
QStandardPaths::AppDataLocation | 17 | Returns a directory location where persistent application data can be stored. This is an application-specific directory. To obtain a path to store data to be shared with other applications, use QStandardPaths::GenericDataLocation. The returned path is never empty. On the Windows operating system, this returns the roaming path. This enum value was added in Qt 5.4. |
QStandardPaths::AppLocalDataLocation | DataLocation | Returns the local settings path on the Windows operating system. On all other platforms, it returns the same value as AppDataLocation. This enum value was added in Qt 5.4. |
QStandardPaths::AppConfigLocation | 18 | Returns a directory location where user-specific configuration files should be written. This is an application-specific directory, and the returned path is never empty. This enum value was added in Qt 5.5. |
The following table gives examples of paths on different operating systems. The first path is the writable path (unless noted). Other, additional paths, if any, represent non-writable locations.
Path type | macOS | Windows |
---|---|---|
DesktopLocation | '~/Desktop' | 'C:/Users//Desktop' |
DocumentsLocation | '~/Documents' | 'C:/Users//Documents' |
FontsLocation | '/System/Library/Fonts' (not writable) | 'C:/Windows/Fonts' (not writable) |
ApplicationsLocation | '/Applications' (not writable) | 'C:/Users//AppData/Roaming/Microsoft/Windows/Start Menu/Programs' |
MusicLocation | '~/Music' | 'C:/Users//Music' |
MoviesLocation | '~/Movies' | 'C:/Users//Videos' |
PicturesLocation | '~/Pictures' | 'C:/Users//Pictures' |
TempLocation | randomly generated by the OS | 'C:/Users//AppData/Local/Temp' |
HomeLocation | '~' | 'C:/Users/' |
DataLocation | '~/Library/Application Support/', '/Library/Application Support/'. '/./Resources' | 'C:/Users//AppData/Local/', 'C:/ProgramData/', '', '/data', '/data/' |
CacheLocation | '~/Library/Caches/', '/Library/Caches/' | 'C:/Users//AppData/Local//cache' |
GenericDataLocation | '~/Library/Application Support', '/Library/Application Support' | 'C:/Users//AppData/Local', 'C:/ProgramData', '', '/data' |
RuntimeLocation | '~/Library/Application Support' | 'C:/Users/' |
ConfigLocation | '~/Library/Preferences' | 'C:/Users//AppData/Local/', 'C:/ProgramData/' |
GenericConfigLocation | '~/Library/Preferences' | 'C:/Users//AppData/Local', 'C:/ProgramData' |
DownloadLocation | '~/Downloads' | 'C:/Users//Documents' |
GenericCacheLocation | '~/Library/Caches', '/Library/Caches' | 'C:/Users//AppData/Local/cache' |
AppDataLocation | '~/Library/Application Support/', '/Library/Application Support/'. '/./Resources' | 'C:/Users//AppData/Roaming/', 'C:/ProgramData/', '', '/data', '/data/' |
AppLocalDataLocation | '~/Library/Application Support/', '/Library/Application Support/'. '/./Resources' | 'C:/Users//AppData/Local/', 'C:/ProgramData/', '', '/data', '/data/' |
AppConfigLocation | '~/Library/Preferences/' | 'C:/Users//AppData/Local/', 'C:/ProgramData/' |
Path type | Linux |
---|---|
DesktopLocation | '~/Desktop' |
DocumentsLocation | '~/Documents' |
FontsLocation | '~/.fonts', '~/.local/share/fonts', '/usr/local/share/fonts', '/usr/share/fonts' |
ApplicationsLocation | '~/.local/share/applications', '/usr/local/share/applications', '/usr/share/applications' |
MusicLocation | '~/Music' |
MoviesLocation | '~/Videos' |
PicturesLocation | '~/Pictures' |
TempLocation | '/tmp' |
HomeLocation | '~' |
DataLocation | '~/.local/share/', '/usr/local/share/', '/usr/share/' |
CacheLocation | '~/.cache/' |
GenericDataLocation | '~/.local/share', '/usr/local/share', '/usr/share' |
RuntimeLocation | '/run/user/' |
ConfigLocation | '~/.config', '/etc/xdg' |
GenericConfigLocation | '~/.config', '/etc/xdg' |
DownloadLocation | '~/Downloads' |
GenericCacheLocation | '~/.cache' |
AppDataLocation | '~/.local/share/', '/usr/local/share/', '/usr/share/' |
AppLocalDataLocation | '~/.local/share/', '/usr/local/share/', '/usr/share/' |
AppConfigLocation | '~/.config/', '/etc/xdg/' |
Path type | Android | iOS |
---|---|---|
DesktopLocation | '/files' | '/Documents/Desktop' |
DocumentsLocation | '/Documents', '//Documents' | '/Documents' |
FontsLocation | '/system/fonts' (not writable) | '/Library/Fonts' |
ApplicationsLocation | not supported (directory not readable) | not supported |
MusicLocation | '/Music', '//Music' | '/Documents/Music' |
MoviesLocation | '/Movies', '//Movies' | '/Documents/Movies' |
PicturesLocation | '/Pictures', '//Pictures' | '/Documents/Pictures', 'assets-library://' |
TempLocation | '/cache' | '/tmp' |
HomeLocation | '/files' | system defined |
DataLocation | '/files', '//files' | '/Library/Application Support' |
CacheLocation | '/cache', '//cache' | '/Library/Caches' |
GenericDataLocation | '' | '/Documents' |
RuntimeLocation | '/cache' | not supported |
ConfigLocation | '/files/settings' | '/Library/Preferences' |
GenericConfigLocation | '/files/settings' (there is no shared settings) | '/Library/Preferences' |
DownloadLocation | '/Downloads', '//Downloads' | '/Documents/Downloads' |
GenericCacheLocation | '/cache' (there is no shared cache) | '/Library/Caches' |
AppDataLocation | '/files', '//files' | '/Library/Application Support' |
AppConfigLocation | '/files/settings' | '/Library/Preferences/' |
AppLocalDataLocation | '/files', '//files' | '/Library/Application Support' |
In the table above, is usually the organization name, the application name, or both, or a unique name generated at packaging. Similarly, is the location where this application is installed (often a sandbox). is the directory containing the application executable.
The paths above should not be relied upon, as they may change according to OS configuration, locale, or they may change in future Qt versions.
Note: On Android, applications with open files on the external storage ( locations), will be killed if the external storage is unmounted.
Note: On Android 6.0 (API 23) or higher, the 'WRITE_EXTERNAL_STORAGE' permission must be requested at runtime when using QStandardPaths::writableLocation or QStandardPaths::standardLocations.
Note: On iOS, if you do pass QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last()
as argument to QFileDialog::setDirectory(), a native image picker dialog will be used for accessing the user's photo album. The filename returned can be loaded using QFile and related APIs. This feature was added in Qt 5.5.
See also writableLocation(), standardLocations(), displayName(), locate(), and locateAll().
Folder Tidy 2 7 5 Qt Saucepan
Member Function Documentation
[static]
QString QStandardPaths::displayName(QStandardPaths::StandardLocationtype)
Returns a localized display name for the given location type or an empty QString if no relevant location can be found.
[static]
QString QStandardPaths::findExecutable(const QString &executableName, const QStringList &paths = QStringList())
Finds the executable named executableName in the specified paths, or the system paths if paths is empty.
On most operating systems the system path is determined by the PATH
environment variable. The directories where to search for the executable can be set in the paths argument. To search in both your own paths and the system paths, call findExecutable twice, once with paths set and once with paths empty. Symlinks are not resolved in order to preserve behavior for the case of executables whose behavior depends on the name they are invoked with .
Note: On Windows, the usual executable extensions (from the PATHEXT environment variable) are automatically appended. For example, the findExecutable('foo') call finds foo.exe
or foo.bat
Perfect horizon straighten and rotate video 1 0 1. if present.
Folder Tidy 2 7 5 Qt Lid
Returns the absolute file path to the executable, or an empty string if not found.
[static]
QString QStandardPaths::locate(QStandardPaths::StandardLocationtype, const QString &fileName, QStandardPaths::LocateOptionsoptions = LocateFile)
Finds a file or directory called fileName in the standard locations for type.
The options flag lets you specify whether to look for files or directories. By default, this flag is set to LocateFile
.
Returns the absolute path to the first file or directory found, otherwise returns an empty string.
Member Type Documentation
enum QStandardPaths::LocateOption
flags QStandardPaths::LocateOptions
This enum describes the different flags that can be used for controlling the behavior of QStandardPaths::locate and QStandardPaths::locateAll.
Constant | Value | Description |
---|---|---|
QStandardPaths::LocateFile | 0x0 | return only files |
QStandardPaths::LocateDirectory | 0x1 | return only directories |
The LocateOptions type is a typedef for QFlags. It stores an OR combination of LocateOption values.
enum QStandardPaths::StandardLocation
This enum describes the different locations that can be queried using methods such as QStandardPaths::writableLocation, QStandardPaths::standardLocations, and QStandardPaths::displayName.
Some of the values in this enum represent a user configuration. Such enum values will return the same paths in different applications, so they could be used to share data with other applications. Other values are specific to this application. Each enum value in the table below describes whether it's application-specific or generic.
Application-specific directories should be assumed to be unreachable by other applications. Therefore, files placed there might not be readable by other applications, even if run by the same user. On the other hand, generic directories should be assumed to be accessible by all applications run by this user, but should still be assumed to be unreachable by applications by other users.
Data interchange with other users is out of the scope of QStandardPaths.
Constant | Value | Description |
---|---|---|
QStandardPaths::DesktopLocation | 0 | Returns the user's desktop directory. This is a generic value. On systems with no concept of a desktop, this is the same as QStandardPaths::HomeLocation. |
QStandardPaths::DocumentsLocation | 1 | Returns the directory containing user document files. This is a generic value. The returned path is never empty. |
QStandardPaths::FontsLocation | 2 | Returns the directory containing user's fonts. This is a generic value. Note that installing fonts may require additional, platform-specific operations. |
QStandardPaths::ApplicationsLocation | 3 | Returns the directory containing the user applications (either executables, application bundles, or shortcuts to them). This is a generic value. Note that installing applications may require additional, platform-specific operations. Files, folders or shortcuts in this directory are platform-specific. |
QStandardPaths::MusicLocation | 4 | Returns the directory containing the user's music or other audio files. This is a generic value. If no directory specific for music files exists, a sensible fallback for storing user documents is returned. |
QStandardPaths::MoviesLocation | 5 | Returns the directory containing the user's movies and videos. This is a generic value. If no directory specific for movie files exists, a sensible fallback for storing user documents is returned. |
QStandardPaths::PicturesLocation | 6 | Returns the directory containing the user's pictures or photos. This is a generic value. If no directory specific for picture files exists, a sensible fallback for storing user documents is returned. |
QStandardPaths::TempLocation | 7 | Returns a directory where temporary files can be stored. The returned value might be application-specific, shared among other applications for this user, or even system-wide. The returned path is never empty. |
QStandardPaths::HomeLocation | 8 | Returns the user's home directory (the same as QDir::homePath()). On Unix systems, this is equal to the HOME environment variable. This value might be generic or application-specific, but the returned path is never empty. |
QStandardPaths::DataLocation | 9 | Returns the same value as AppLocalDataLocation. This enumeration value is deprecated. Using AppDataLocation is preferable since on Windows, the roaming path is recommended. |
QStandardPaths::CacheLocation | 10 | Returns a directory location where user-specific non-essential (cached) data should be written. This is an application-specific directory. The returned path is never empty. |
QStandardPaths::GenericCacheLocation | 15 | Returns a directory location where user-specific non-essential (cached) data, shared across applications, should be written. This is a generic value. Note that the returned path may be empty if the system has no concept of shared cache. |
QStandardPaths::GenericDataLocation | 11 | Returns a directory location where persistent data shared across applications can be stored. This is a generic value. The returned path is never empty. |
QStandardPaths::RuntimeLocation | 12 | Returns a directory location where runtime communication files should be written, like Unix local sockets. This is a generic value. The returned path may be empty on some systems. |
QStandardPaths::ConfigLocation | 13 | Returns a directory location where user-specific configuration files should be written. This may be either a generic value or application-specific, and the returned path is never empty. |
QStandardPaths::DownloadLocation | 14 | Returns a directory for user's downloaded files. This is a generic value. If no directory specific for downloads exists, a sensible fallback for storing user documents is returned. |
QStandardPaths::GenericConfigLocation | 16 | Returns a directory location where user-specific configuration files shared between multiple applications should be written. This is a generic value and the returned path is never empty. |
QStandardPaths::AppDataLocation | 17 | Returns a directory location where persistent application data can be stored. This is an application-specific directory. To obtain a path to store data to be shared with other applications, use QStandardPaths::GenericDataLocation. The returned path is never empty. On the Windows operating system, this returns the roaming path. This enum value was added in Qt 5.4. |
QStandardPaths::AppLocalDataLocation | DataLocation | Returns the local settings path on the Windows operating system. On all other platforms, it returns the same value as AppDataLocation. This enum value was added in Qt 5.4. |
QStandardPaths::AppConfigLocation | 18 | Returns a directory location where user-specific configuration files should be written. This is an application-specific directory, and the returned path is never empty. This enum value was added in Qt 5.5. |
The following table gives examples of paths on different operating systems. The first path is the writable path (unless noted). Other, additional paths, if any, represent non-writable locations.
Path type | macOS | Windows |
---|---|---|
DesktopLocation | '~/Desktop' | 'C:/Users//Desktop' |
DocumentsLocation | '~/Documents' | 'C:/Users//Documents' |
FontsLocation | '/System/Library/Fonts' (not writable) | 'C:/Windows/Fonts' (not writable) |
ApplicationsLocation | '/Applications' (not writable) | 'C:/Users//AppData/Roaming/Microsoft/Windows/Start Menu/Programs' |
MusicLocation | '~/Music' | 'C:/Users//Music' |
MoviesLocation | '~/Movies' | 'C:/Users//Videos' |
PicturesLocation | '~/Pictures' | 'C:/Users//Pictures' |
TempLocation | randomly generated by the OS | 'C:/Users//AppData/Local/Temp' |
HomeLocation | '~' | 'C:/Users/' |
DataLocation | '~/Library/Application Support/', '/Library/Application Support/'. '/./Resources' | 'C:/Users//AppData/Local/', 'C:/ProgramData/', '', '/data', '/data/' |
CacheLocation | '~/Library/Caches/', '/Library/Caches/' | 'C:/Users//AppData/Local//cache' |
GenericDataLocation | '~/Library/Application Support', '/Library/Application Support' | 'C:/Users//AppData/Local', 'C:/ProgramData', '', '/data' |
RuntimeLocation | '~/Library/Application Support' | 'C:/Users/' |
ConfigLocation | '~/Library/Preferences' | 'C:/Users//AppData/Local/', 'C:/ProgramData/' |
GenericConfigLocation | '~/Library/Preferences' | 'C:/Users//AppData/Local', 'C:/ProgramData' |
DownloadLocation | '~/Downloads' | 'C:/Users//Documents' |
GenericCacheLocation | '~/Library/Caches', '/Library/Caches' | 'C:/Users//AppData/Local/cache' |
AppDataLocation | '~/Library/Application Support/', '/Library/Application Support/'. '/./Resources' | 'C:/Users//AppData/Roaming/', 'C:/ProgramData/', '', '/data', '/data/' |
AppLocalDataLocation | '~/Library/Application Support/', '/Library/Application Support/'. '/./Resources' | 'C:/Users//AppData/Local/', 'C:/ProgramData/', '', '/data', '/data/' |
AppConfigLocation | '~/Library/Preferences/' | 'C:/Users//AppData/Local/', 'C:/ProgramData/' |
Path type | Linux |
---|---|
DesktopLocation | '~/Desktop' |
DocumentsLocation | '~/Documents' |
FontsLocation | '~/.fonts', '~/.local/share/fonts', '/usr/local/share/fonts', '/usr/share/fonts' |
ApplicationsLocation | '~/.local/share/applications', '/usr/local/share/applications', '/usr/share/applications' |
MusicLocation | '~/Music' |
MoviesLocation | '~/Videos' |
PicturesLocation | '~/Pictures' |
TempLocation | '/tmp' |
HomeLocation | '~' |
DataLocation | '~/.local/share/', '/usr/local/share/', '/usr/share/' |
CacheLocation | '~/.cache/' |
GenericDataLocation | '~/.local/share', '/usr/local/share', '/usr/share' |
RuntimeLocation | '/run/user/' |
ConfigLocation | '~/.config', '/etc/xdg' |
GenericConfigLocation | '~/.config', '/etc/xdg' |
DownloadLocation | '~/Downloads' |
GenericCacheLocation | '~/.cache' |
AppDataLocation | '~/.local/share/', '/usr/local/share/', '/usr/share/' |
AppLocalDataLocation | '~/.local/share/', '/usr/local/share/', '/usr/share/' |
AppConfigLocation | '~/.config/', '/etc/xdg/' |
Path type | Android | iOS |
---|---|---|
DesktopLocation | '/files' | '/Documents/Desktop' |
DocumentsLocation | '/Documents', '//Documents' | '/Documents' |
FontsLocation | '/system/fonts' (not writable) | '/Library/Fonts' |
ApplicationsLocation | not supported (directory not readable) | not supported |
MusicLocation | '/Music', '//Music' | '/Documents/Music' |
MoviesLocation | '/Movies', '//Movies' | '/Documents/Movies' |
PicturesLocation | '/Pictures', '//Pictures' | '/Documents/Pictures', 'assets-library://' |
TempLocation | '/cache' | '/tmp' |
HomeLocation | '/files' | system defined |
DataLocation | '/files', '//files' | '/Library/Application Support' |
CacheLocation | '/cache', '//cache' | '/Library/Caches' |
GenericDataLocation | '' | '/Documents' |
RuntimeLocation | '/cache' | not supported |
ConfigLocation | '/files/settings' | '/Library/Preferences' |
GenericConfigLocation | '/files/settings' (there is no shared settings) | '/Library/Preferences' |
DownloadLocation | '/Downloads', '//Downloads' | '/Documents/Downloads' |
GenericCacheLocation | '/cache' (there is no shared cache) | '/Library/Caches' |
AppDataLocation | '/files', '//files' | '/Library/Application Support' |
AppConfigLocation | '/files/settings' | '/Library/Preferences/' |
AppLocalDataLocation | '/files', '//files' | '/Library/Application Support' |
In the table above, is usually the organization name, the application name, or both, or a unique name generated at packaging. Similarly, is the location where this application is installed (often a sandbox). is the directory containing the application executable.
The paths above should not be relied upon, as they may change according to OS configuration, locale, or they may change in future Qt versions.
Note: On Android, applications with open files on the external storage ( locations), will be killed if the external storage is unmounted.
Note: On Android 6.0 (API 23) or higher, the 'WRITE_EXTERNAL_STORAGE' permission must be requested at runtime when using QStandardPaths::writableLocation or QStandardPaths::standardLocations.
Note: On iOS, if you do pass QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last()
as argument to QFileDialog::setDirectory(), a native image picker dialog will be used for accessing the user's photo album. The filename returned can be loaded using QFile and related APIs. This feature was added in Qt 5.5.
See also writableLocation(), standardLocations(), displayName(), locate(), and locateAll().
Folder Tidy 2 7 5 Qt Saucepan
Member Function Documentation
[static]
QString QStandardPaths::displayName(QStandardPaths::StandardLocationtype)
Returns a localized display name for the given location type or an empty QString if no relevant location can be found.
[static]
QString QStandardPaths::findExecutable(const QString &executableName, const QStringList &paths = QStringList())
Finds the executable named executableName in the specified paths, or the system paths if paths is empty.
On most operating systems the system path is determined by the PATH
environment variable. The directories where to search for the executable can be set in the paths argument. To search in both your own paths and the system paths, call findExecutable twice, once with paths set and once with paths empty. Symlinks are not resolved in order to preserve behavior for the case of executables whose behavior depends on the name they are invoked with .
Note: On Windows, the usual executable extensions (from the PATHEXT environment variable) are automatically appended. For example, the findExecutable('foo') call finds foo.exe
or foo.bat
Perfect horizon straighten and rotate video 1 0 1. if present.
Folder Tidy 2 7 5 Qt Lid
Returns the absolute file path to the executable, or an empty string if not found.
[static]
QString QStandardPaths::locate(QStandardPaths::StandardLocationtype, const QString &fileName, QStandardPaths::LocateOptionsoptions = LocateFile)
Finds a file or directory called fileName in the standard locations for type.
The options flag lets you specify whether to look for files or directories. By default, this flag is set to LocateFile
.
Returns the absolute path to the first file or directory found, otherwise returns an empty string.
[static]
QStringList QStandardPaths::locateAll(QStandardPaths::StandardLocationtype, const QString &fileName, QStandardPaths::LocateOptionsoptions = LocateFile)
Finds all files or directories by the name, fileName, in the standard locations for type.
The options flag lets you specify whether to look for files or directories. By default, this flag is set to LocateFile
.
Returns the list of all the files that were found.
[static]
void QStandardPaths::setTestModeEnabled(booltestMode)
Cyberduck ftp tutorial. If testMode is true
, this enables a special 'test mode' in QStandardPaths, which changes writable locations to point to test directories. Deskcover pro 1 3 (73). This prevents auto tests from reading or writing to the current user's configuration.
It affects the locations into which test programs might write files: GenericDataLocation
, DataLocation
, ConfigLocation
, GenericConfigLocation
, AppConfigLocation
, GenericCacheLocation
, and CacheLocation
. Other locations are not affected.
How to withdraw money from bovada. On Unix, XDG_DATA_HOME
is set to ~/.qttest/share
, XDG_CONFIG_HOME
is set to ~/.qttest/config
, and XDG_CACHE_HOME
is set to ~/.qttest/cache
.
On macOS, data goes to ~/.qttest/Application Support
, cache goes to ~/.qttest/Cache
, and config goes to ~/.qttest/Preferences
.
Ios 10 6 download. On Windows, everything goes to a 'qttest' directory under %APPDATA%
.
[static]
QStringList QStandardPaths::standardLocations(QStandardPaths::StandardLocationtype)
Returns all the directories where files of type belong.
The list of directories is sorted from high to low priority, starting with writableLocation() if it can be determined. This list is empty if no locations for type are defined.
Ip scanner 3 51 download free. See also writableLocation().
[static]
QString QStandardPaths::writableLocation(QStandardPaths::StandardLocationtype)
Returns the directory where files of type should be written to, or an empty string if the location cannot be determined.
Note: The storage location returned may not exist; that is, it may need to be created by the system or the user.
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.