How do I choose from photos stored on my phone
-
Use
FileDialog
from platform module. Probably you need correct rights to acces photos from your app. -
@mikeeeeee You did not read the documentation, right?
For QML: https://doc.qt.io/qt-5/qml-qtquick-dialogs-filedialog.html#nameFilters-prop
For Widgets: https://doc.qt.io/qt-5/qfiledialog.html#setNameFilter (one of the possibilities)"How can I preview all photos in one window?" - I don't think you can as on Android photos can be stored in different locations.
-
@mikeeeeee
So if you/we do not know of a "phone system call" to do this, and QML/Qt does not offer anything for it, you have to look over the phone/in known locations to find the photos, and roll your own "file chooser" for it instead ofFileDialog
. Perhaps that is all Skype etc. are doing in code. -
To do this you will probably need to
go deeperuse phone OS native API. -
this, blog post is probably exactly what you're looking for, even has an example project, if I see that correctly
accroding to the poster, the example doesn't work out of the box for newer versions of android, you'll have to apply some fixes apparently.