diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-11-14 17:50:25 +0100 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-11-20 21:13:01 +0100 |
| commit | b3918b13a9278df3dcda33b2c5440eba58c8efe9 (patch) | |
| tree | 60c06c4edf6f69a0594488022315f044ce775c98 /src/gui/doc/snippets | |
| parent | f1d0f5d7ee6cf4466a71bb68af0e87a68e558359 (diff) | |
iOS: Add support for QFileOpenEvent for external requests to open files
[ChangeLog][iOS] QFileOpenEvent is now sent if the user requests that
a supported file type is to be opened in the application. This requires
that the application declares supported file types via CFBundleDocumentTypes.
Change-Id: Ic3476ad703b51131a0973e3d6135e9aa05c2091f
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/doc/snippets')
| -rw-r--r-- | src/gui/doc/snippets/qfileopenevent/Info.plist | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/doc/snippets/qfileopenevent/Info.plist b/src/gui/doc/snippets/qfileopenevent/Info.plist index 98ab05e708e..635298f7274 100644 --- a/src/gui/doc/snippets/qfileopenevent/Info.plist +++ b/src/gui/doc/snippets/qfileopenevent/Info.plist @@ -9,9 +9,9 @@ <key>CFBundleDocumentTypes</key> <array> <dict> - <key>CFBundleTypeExtensions</key> + <key>LSItemContentTypes</key> <array> - <string>png</string> + <string>public.png</string> </array> <key>CFBundleTypeRole</key> <string>Viewer</string> @@ -20,3 +20,8 @@ </dict> </plist> //! [Custom Info.plist] + +//! [iOS] +<key>UISupportsDocumentBrowser</key> +<true/> +//! [iOS] |
