doc: document how QFileDialog can be used to pick photos on iOS
Change-Id: Iab4a0842f811cd26484123e6949c9b6a0ef0d524 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>bb10
parent
5d78584523
commit
91efad8ef7
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue