StandardPaths QML Type
Provides access to the standard system paths. More...
Import Statement: | import Qt.labs.platform 1.0 |
Since: | Qt 5.8 |
Inherits: |
Methods
- string displayName(StandardLocation type)
- url findExecutable(string executableName, list<string> paths)
- url locate(StandardLocation type, string fileName, LocateOptions options)
- list<url> locateAll(StandardLocation type, string fileName, LocateOptions options)
- void setTestModeEnabled(bool testMode)
- list<url> standardLocations(StandardLocation type)
- url writableLocation(StandardLocation type)
Detailed Description
The StandardPaths singleton type provides methods for querying the standard system paths. The standard paths are mostly useful in conjunction with the FileDialog and FolderDialog types.
FileDialog { folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation) }
Note: Types in Qt.labs modules are not guaranteed to remain compatible in future versions.
See also FileDialog, FolderDialog, and QStandardPaths.
Method Documentation
See also QStandardPaths::displayName().
url findExecutable(string executableName, list<string> paths) |
See also QStandardPaths::findExecutable().
url locate(StandardLocation type, string fileName, LocateOptions options = LocateFile) |
See also QStandardPaths::locate().
list<url> locateAll(StandardLocation type, string fileName, LocateOptions options = LocateFile) |
See also QStandardPaths::locateAll().
See also QStandardPaths::setTestModeEnabled().
list<url> standardLocations(StandardLocation type) |
See also QStandardPaths::standardLocations().
url writableLocation(StandardLocation type) |
See also QStandardPaths::writableLocation().
© 2017 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.