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

QIOSFileDialog: Could not resolve Qt plugin that gives access to photos on iOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • 6.7.2
    • Quick: Dialogs
    • None
    • iOS/tvOS/watchOS

      upon opening FileDialog{} on iOS, i have following error and nothing happens:

      QIOSFileDialog: Could not resolve Qt plugin that gives access to photos on iOS 

      code looks like:

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Dialogs
      import QtCore
      
      Window {
      	id: root
      
      	FileDialog {
      		id: fileDialog
      		title: qsTr("Choose a folder with some images")
      		//options: FileDialog.DontUseNativeDialog	// | FileDialog.ReadOnly
      		options: FileDialog.ReadOnly
      		fileMode: FileDialog.OpenFile
      		modality: Qt.WindowModal
      		currentFolder: if (Qt.platform.os === "ios") { return "file:assets-library://"; }			// same issue, initialy tried StandardPath for iOS with same result
      				else { return StandardPaths.standardLocations(StandardPaths.PicturesLocation).pop(); }
      		
      	}
      
      	Component.onCompleted: fileDialog.open()
      }

       

      and of course in my Info.plist.in I have:

          <key>NSPhotoLibraryUsageDescription</key>
          <string>This app requires access to your pictures</string> 

      For windows and Android all works fine... native picker opens and works fine.

      Am I missing someting? in CMake or main.cpp for example?

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            shokarta Jiri Zaloudek
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes