IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

StandardPaths QML Type

Provides access to the standard system paths.

This type was introduced in Qt 5.8.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

StandardPaths QML Type

  • Import Statement: import Qt.labs.platform 1.1

  • Since: Qt 5.8

  • Inherits: QtObject

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.

 
Sélectionnez
FileDialog {
    folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
}

Types in Qt.labs modules are not guaranteed to remain compatible in future versions.

See Also

Method Documentation

 

string displayName(StandardLocation type)

 
See Also

url findExecutable(string executableName, list<string> paths)

url locate(StandardLocation type, string fileName, LocateOptions options = LocateFile)

 
See Also

list<url> locateAll(StandardLocation type, string fileName, LocateOptions options = LocateFile)

 
See Also

void setTestModeEnabled(bool testMode)

list<url> standardLocations(StandardLocation type)

url writableLocation(StandardLocation type)

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+