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

iOS only: Cannot have Quick Control 1 and Controls 2 at same time

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 826b09f0c507fe5321a8534054a4f0b7bdd2699b (qt/qtbase/5.12)

    Description

      Sample code:

      import QtQuick 2.10
      import QtQuick.Window 2.10
      import QtQuick.Controls 1.3 as Controls1
      import QtQuick.Controls 2.1
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      }
      

      This is kind of a dealbreaker as it for example breaks the FileDialog component that internally still uses Controls 1.

      On 5.11.2 everything works.

      On 5.12.0 rc1 I get:
      qrc:/main.qml:4 module "QtQuick.Controls" version 2.1 is not installed

      I wonder what changed between those versions? Somehow in creating the app bundle maybe or otherwise in deploying the qml resources or namespaces? Although everything should be in the library plugins, I don't know enough about the internals to understand this myself.

      Thank you @richard for helping me to reproduce this.

      Output of qmlimportscanner shows both:

      [
          {
              "name": "QtQuick",
              "type": "module",
              "version": "2.10"
          },
          {
              "name": "QtQuick.Window",
              "type": "module",
              "version": "2.10"
          },
          {
              "name": "QtQuick.Controls",
              "type": "module",
              "version": "1.3"
          },
          {
              "name": "QtQuick.Controls",
              "type": "module",
              "version": "2.1"
          },
          {
              "name": "QtQuick",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Templates",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Window",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Controls",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Controls.impl",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Window",
              "type": "module",
              "version": "2.2"
          },
          {
              "name": "QtQuick.Controls.Fusion",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Controls.Fusion.impl",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Controls.Universal",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Controls.Universal.impl",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Controls.Material",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Controls.Material.impl",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Controls.Imagine",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtQuick.Controls.Imagine.impl",
              "type": "module",
              "version": "2.12"
          },
          {
              "name": "QtGraphicalEffects",
              "type": "module",
              "version": "1.12"
          }
      ]
      
      

      In the LIBS I see both -lqtquickcontrolsplugin and -lqtquickcontrols2plugin ..

      Attachments

        Issue Links

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

          Activity

            People

              richard Richard Moe Gustavsen
              mgoetz2 Markus Goetz (Woboq GmbH)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes