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

QML Image cannot open image on iOS when the "Optimize iPhone storage" option is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10.1
    • None
    • iOS 11.3
      iPhone 7
    • iOS/tvOS/watchOS

    Description

      If the optimize iPhone storage option (settings -> photos -> optimize iPhone storage) is enabled and a picture is taken, such picture cannot be loaded in the QML image component using the following code. If the optimize iPhone storage option is disabled it works fine.

      FileDialog

      { id: fileDialog title: "Select picture" folder: shortcuts.pictures onAccepted: image.source = fileDialog.fileUrl }

      Image {
      id: image
      anchors.fill: parent
      autoTransform: true
      fillMode: Image.PreserveAspectFit

      MouseArea

      { anchors.fill: parent onClicked: fileDialog.open() }

      AppText

      { anchors.centerIn: parent text: qsTr("Click here") }

      }

      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
            jbonilla jbonilla
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes