diff options
author | Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> | 2015-05-06 11:31:04 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> | 2015-05-06 12:16:12 +0000 |
commit | 91efad8ef773ce93093e2a795fd389c50e7033f0 (patch) | |
tree | fb63435ebb0063114952073d1fc46980afcdb245 /src/widgets | |
parent | 5d7858452377c50032654b6ab4d8f743e9f5068a (diff) |
doc: document how QFileDialog can be used to pick photos on iOS
Change-Id: Iab4a0842f811cd26484123e6949c9b6a0ef0d524
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/dialogs/qfiledialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/widgets/dialogs/qfiledialog.cpp b/src/widgets/dialogs/qfiledialog.cpp index 8590467abc..a9d5574428 100644 --- a/src/widgets/dialogs/qfiledialog.cpp +++ b/src/widgets/dialogs/qfiledialog.cpp @@ -893,6 +893,12 @@ void QFileDialogPrivate::_q_goToUrl(const QUrl &url) /*! Sets the file dialog's current \a directory. + + \note On iOS, if you set \a directory to \l{QStandardPaths::standardLocations()} + {QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last()}, + 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. */ void QFileDialog::setDirectory(const QString &directory) { |