Details
-
Bug
-
Status: In Progress
-
P2: Important
-
Resolution: Unresolved
-
6.4.1
-
None
-
Tested with iOS 15.6
-
-
21a6c8697 (dev), a247551d9 (6.5)
Description
Native Photo Picker does not react to tapping "Cancel" or selecting a photo. Hence, there's no way to close the picker.
The implementation is as simple as
import QtCore import QtQuick import QtQuick.Controls import QtQuick.Dialogs Window { ... FileDialog { id: fileDialog currentFolder: "file:assets-library://" onAccepted: { image.source = selectedFile } } ...
Known issue
Only happens for the first time after the app's installation.
-> Need to delete and deploy in order to reproduce again.
Works fine in Qt5.15.11 with labs FileDialog.
How to reproduce
1. Please use Qtbug109120.zip .
2. Run and click the button to open the native image picker.
3. Tap one photo so that it will show a message dialog as below.
4. Select "Select Photos".
5. Tapping "Cancel" or a photo does nothing.
Note : Photos/Album can be switched, and also it's possible to view albums so it's not completely stuck.
Attachments
Issue Links
- relates to
-
QTBUG-109161 Missing example and right docs on how to open photos from a library on the mobile device
-
- Reported
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-109120 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
469428,2 | QIOSFileEngineAssetsLibrary: bail out early on non-existing dirs | dev | qt/qtbase | Status: NEW | 0 | 0 |
456790,2 | WIP: qiosfiledialog - try to workaround picker/asset library's misbehavior | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |
468845,16 | iOS: request authorization before presenting image-picker | dev | qt/qtbase | Status: MERGED | +2 | 0 |
469510,2 | iOS: request authorization before presenting image-picker | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |