Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92359

Unable to access IOs images using FileDialog image picker

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.15.2
    • Quick: Controls 1
    • None
    • MacOs Big Sur 11.3
    • iOS/tvOS/watchOS

    Description

      FileDialog {
          id: root
          nameFilters: [ "Image files (*.jpg *.jpeg *.png *.bmp *.gif *.pbm *.pgm *.ppm *.xbm *.xpm)" ]
          folder: shortcuts.pictures
      }
      

      returns an fileUrl file:assets-library://asset/asset.HEIC%3Fid=CC95F08C-88C3-4012-9D6D-64A413D254B3&ext=HEIC

      the QFile constructed from this file Url exists. But its size calculated with FileInfo is 0.

      QUrl url1 {fileUrl};
          QFile file2 {url1.toLocalFile()};
      

      file2.readAll just returns empty QByteArray

      I can not attach any file here as getting message
      "Jira could not attach the file as there was a missing token. Please try attaching the file again."

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kofr Konstantinr
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes