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

DefaultFileDialog.qml cannot be loaded on iOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • 5.9.3, 5.10.1, 5.11.1
    • None
    • * macOS 10.13.1
       * iOS 11.1.2 (iPad Pro)
       * Qt 5.9.3
       * QtCreator 4.4.1

      First iOS deployment of our app on 5.9.3 (last deployment occurred back on 5.8 without any issue). 

      Deployment done from QtCreator, and application run in debug mode on iPad Pro, until the following error occurs, causing the application to shutdown:

      [...]: Type QQDialogs.FileDialog unavailable, qrc:/qt-project.org/imports/QtQuick/Dialogs/DefaultFileDialog.qml:104:31: Invalid alias target location: width).

      Everything works well on desktop (macOS). 

      Here is the sample code (the QML file is loaded by cpp using QQmlApplicationEngine) :

       

      // QML file
      import QtQuick 2.5
      import QtQuick.Controls 2.2
      import QtQuick.Dialogs 1.2
      
      ApplicationWindow {
      
          FileDialog {
              id: dialog
              title: qsTr("Open...")
              folder: shortcuts.documents
          }
      
          Component.onCompleted: dialog.open()
      }
      

      Causing: 

      FATAL 2017-11-27T21:14:44.688 (qrc:///core/CoreApplication.qml:43:5: Type FileDialog unavailable, qrc:/qt-project.org/imports/QtQuick/Dialogs/DefaultFileDialog.qml:104:31: Invalid alias target location: width)

       

       

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

            richard Richard Moe Gustavsen
            c.lorquet Cyril Lorquet
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes