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

Versionless QtQuick.Controls 2 import does not work

    XMLWordPrintable

Details

    • All

    Description

      The following example fails:

      import QtQuick
      import QtQuick.Controls
      
      Window {
      }
      

      The error message is:

      QQmlApplicationEngine failed to load component
      qrc:/main.qml:2:1: module "QtQuick.Controls" is not installed
      

      If I change the QtQuick.Controls import to be versioned, it works fine:

      import QtQuick
      import QtQuick.Controls 2.12
      
      Window {
      }
      

      Most likely due to Qt Quick Controls 2 having a special install target, since it was previously in name conflict with Qt Quick Controls 1 which was still supported.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes