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

Open FileDialog on iOS does not do anything

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.12.1
    • 5.9.1
    • QPA
    • None
    • macOS Sierra 10.12.6, Xcode 8.3.3, iOS 10.3.3 and 9.3.5 and Qt 5.9.1
    • iOS/tvOS/watchOS
    • 826b09f0c507fe5321a8534054a4f0b7bdd2699b (qt/qtbase/5.12)

      I ran into this problem when trying to build an App for iOS on my Mac.

      I use the FileDialog of the Qt.labs.platform 1.0 on Qt 5.9.1, which works absolutely fine on my Desktop builds for MacOS, Linux and Windows. According to Documentation it should also work for iOS.

      But my App for iOS kept crashing during the initialization of the FileDialog stuff, so I tried a simple example with 

       

      import QtQuick 2.9
      import QtQuick.Controls 2.2
      import Qt.labs.platform 1.0
      
      Item {
          FileDialog {
              id: fileDialog
              folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
          }
          Button {
              id: button1
              text: qsTr("Press Me")
              onClicked: {
                  fileDialog.open()
              }
          }
      }
      

      which does absolutely nothing, not even issue a warning, on the iOS Simulator as well as on the devices (iOS 9 and 10 Xcode 8.3.3)

      When using the  import QtQuick.Dialogs 1.2 instead, it works on the Simulator but does complain on the Device with

      qrc:/test.qml:4 module "QtQuick.Dialogs" is not installed

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

            richard Richard Moe Gustavsen
            magna magna
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes