How to open files from qrc resources using native file dialog in QML?
-
Hi all.
My application has set of icon resources in qrc file, e.g. by this path "qrc://icons/".
And I want to open an "open dialog" that allows to enumerate all icons from that
path and to choose the desired icon to open.Currently I have implemented own dialog using the QML filesystem model, but it looks ugly.
So, I want to open the native file dialog and to pass an icons list to there.Is it possible to pass the enumerated files list to the native file dialog on iOS or Android?
-
Hi,
I think you are looking this type of solution.
https://stackoverflow.com/questions/27892399/qt-show-icons-from-resource-in-a-selectable-liston selection you will get the icon path and display in your QML file.
-
As I saw before, I already have an own custom file open dialog. I need in native file open dialogs for iOS && Android.
AFAIK, the FileDialog does not supports on Android && iOS (on iOS it just enumerates all images/pictures from the phone)...