Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
6.7.2
-
None
Description
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?
Attachments
Issue Links
- duplicates
-
QTBUG-120676 FileDialog does not open when pre-set to open Pictures Library in iOS
- Reported