Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to open files from qrc resources using native file dialog in QML?
Forum Updated to NodeBB v4.3 + New Features

How to open files from qrc resources using native file dialog in QML?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 629 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kuzulis
    Qt Champions 2020
    wrote on 13 Sept 2018, 07:23 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TobbY
      wrote on 13 Sept 2018, 10:27 last edited by
      #2

      Hi,
      I think you are looking this type of solution.
      https://stackoverflow.com/questions/27892399/qt-show-icons-from-resource-in-a-selectable-list

      on selection you will get the icon path and display in your QML file.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kuzulis
        Qt Champions 2020
        wrote on 13 Sept 2018, 11:00 last edited by
        #3

        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)...

        1 Reply Last reply
        0

        1/3

        13 Sept 2018, 07:23

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved