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

[iOS] Problems with Native Photo Picker

    XMLWordPrintable

Details

    • Bug
    • Status: In Progress
    • P2: Important
    • Resolution: Unresolved
    • 6.4.1
    • None
    • Quick: Dialogs
    • Tested with iOS 15.6
    • iOS/tvOS/watchOS

    Description

      Native Photo Picker does not react to tapping "Cancel" or selecting a photo. Hence, there's no way to close the picker.
      The implementation is as simple as

      import QtCore
      import QtQuick
      import QtQuick.Controls
      import QtQuick.Dialogs
      
      Window {
      ...
               FileDialog {
                   id: fileDialog
                   currentFolder: "file:assets-library://"
                   onAccepted:
                   {
                       image.source = selectedFile
                   }
               }
      ...
      

      Known issue
      Only happens for the first time after the app's installation.
      -> Need to delete and deploy in order to reproduce again.
      Works fine in Qt5.15.11 with labs FileDialog.

      How to reproduce
      1. Please use Qtbug109120.zip .
      2. Run and click the button to open the native image picker.
      3. Tap one photo so that it will show a message dialog as below.

      4. Select "Select Photos".
      5. Tapping "Cancel" or a photo does nothing.

      Note : Photos/Album can be switched, and also it's possible to view albums so it's not completely stuck.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-109120
          # Subject Branch Project Status CR V

          Activity

            People

              tpochep Timur Pocheptsov
              nagrohn Nahomi Gröhn
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change