diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-02-17 14:30:19 +0200 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-02-17 19:05:43 +0200 |
commit | 6d64613d99da0032e0b941e2e6250a541c2ea12f (patch) | |
tree | 1606b27237ac6b5dbd231c15920fa890c0e43277 /src/corelib/io/qstandardpaths.cpp | |
parent | dcb38e4bc74337d0d670bc30b8193cbd73f11599 (diff) |
Android: advice user to request storage permission with QStandardPaths
Change-Id: Ie364489fef7ba34f102bfdc279c53f5da176d280
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/corelib/io/qstandardpaths.cpp')
-rw-r--r-- | src/corelib/io/qstandardpaths.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/io/qstandardpaths.cpp b/src/corelib/io/qstandardpaths.cpp index bca454fc7a..b56cf00308 100644 --- a/src/corelib/io/qstandardpaths.cpp +++ b/src/corelib/io/qstandardpaths.cpp @@ -343,7 +343,10 @@ QT_BEGIN_NAMESPACE OS configuration, locale, or they may change in future Qt versions. \note On Android, applications with open files on the external storage (<USER> locations), - will be killed if the external storage is unmounted. + 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 \c {QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last()} as argument to \l{QFileDialog::setDirectory()}, |