Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15, 6.0, 6.1, 6.2.6, 6.2, 6.3.2, 6.4.1, 6.5
-
None
-
-
2023wk02FOQtforAndroid
Description
If a user wants to learn how to open a photo from a library on a mobile device, he needs to make the following set of conclusions which requires a long experience of working with and in Qt:
- The widget API do not mention their use for this, It is not clear if this API can be used or not
- switch to Qt Quick
- need to know upfront that this would be via FileDialog in Qt Quick
- need to pay attention to the section "shortcuts : Object" which tells that "QStandardPaths" would give some "useful" paths, incl. QStandardPaths::PicturesLocation. BTW, it is not "useful", this is "essential"
- Go to QStandardPaths::PicturesLocation to see what "PicturesLocation" contains
- guess that this would be plausible to use ""assets-library://"" and not ""<APPROOT>/Documents/Pictures""
- get simple code to try if this works for this purpose
Not speaking of the fact that API can be much better or even this important use case deserves dedicated API, I wish:
- There will be a dedicated example for this use case for iOS and Android
- If Qt cannot handle the Photo Library on macOS
- Extend and correct the documentation so that it leads the user to the right API and right and clear parameters to be used
Attachments
Issue Links
- relates to
-
QTBUG-109120 [iOS] Problems with Native Photo Picker
- Closed
-
QTBUG-98974 Android 11 - Scoped Storage
- Closed
-
QTBUG-104036 Android 13: New Photo Picker
- Open