diff --git a/src/corelib/io/qstandardpaths.cpp b/src/corelib/io/qstandardpaths.cpp index c5c596fd2e..74252d1f0a 100644 --- a/src/corelib/io/qstandardpaths.cpp +++ b/src/corelib/io/qstandardpaths.cpp @@ -275,45 +275,67 @@ QT_BEGIN_NAMESPACE \endtable \table - \header \li Path type \li Android + \header \li Path type \li Android \li iOS \row \li DesktopLocation \li "/files" + \li "/" (not writable) \row \li DocumentsLocation \li "/Documents", "//Documents" + \li "/Documents" \row \li FontsLocation \li "/system/fonts" (not writable) + \li "/Documents/.fonts" \row \li ApplicationsLocation \li not supported (directory not readable) + \li not supported \row \li MusicLocation \li "/Music", "//Music" + \li "/Documents/Music" \row \li MoviesLocation \li "/Movies", "//Movies" + \li "/Documents/Movies" \row \li PicturesLocation \li "/Pictures", "//Pictures" + \li "/Documents/Pictures", "assets-library://" \row \li TempLocation \li "/cache" + \li "/tmp" \row \li HomeLocation \li "/files" + \li "/" (not writable) \row \li DataLocation \li "/files", "//files" + \li "/Library/Application Support" \row \li CacheLocation \li "/cache", "//cache" + \li "/Library/Caches" \row \li GenericDataLocation \li "" + \li "/Documents" \row \li RuntimeLocation \li "/cache" + \li not supported \row \li ConfigLocation \li "/files/settings" + \li "/Documents" \row \li GenericConfigLocation \li "/files/settings" (there is no shared settings) + \li "/Documents" \row \li DownloadLocation \li "/Downloads", "//Downloads" + \li "/Documents/Download" \row \li GenericCacheLocation \li "/cache" (there is no shared cache) + \li "/Library/Caches" \row \li AppDataLocation \li "/files", "//files" + \li "/Library/Application Support" \row \li AppConfigLocation \li "/files/settings" + \li "/Documents" + \row \li AppLocalDataLocation + \li "/files", "//files" + \li "/Library/Application Support" \endtable In the table above, \c is usually the organization name, the @@ -328,6 +350,12 @@ QT_BEGIN_NAMESPACE \note On Android, applications with open files on the external storage ( locations), will be killed if the external storage is unmounted. + \note On iOS, if you do pass \c {QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last()} + as argument to \l{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. + \sa writableLocation(), standardLocations(), displayName(), locate(), locateAll() */