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

QtQuick.Layouts not included during linking when using ColorDialog

    XMLWordPrintable

Details

    • All
    • ba092a525 (dev), 1827f2870 (6.5)

    Description

      I have built a static build of Qt 6.4.2 with the following options :

      ../qt6/configure -static -prefix /home/rnayabed/qt/qt-6.4.2-static -skip qtcharts,qtlottie,qtrepotools,qtwebchannel,qtcoap,qtmqtt,qtscxml,qtwebengine,qtconnectivity,qtmultimedia,qtsensors,qtwebglplugin,qtdatavis3d,qtnetworkauth,qtserialbus,qtwebsockets,qtopcua,qtserialport,qtwebview,qtdoc,qtpim,qtxmlpatterns,qtfeedback,qtpositioning,qtspeech,qtgamepad,qtqa,qt3d,qtgrpc,qtsystems,qt5compat,qthttpserver,qtquick3dphysics,qtactiveqt,qtimageformat,qtlanguageserver,qtquicktimeline,qtvirtualkeyboard,qtcanvas3d,qtlocation,qtremoteobjects -release
      

       

      Unless there is a mention of

      QtQuick.Layouts

      in the QML Imports, the qml import scanner wont pick it up as dependency of ColorDialog, and hence you will get the following error:

      QML ColorDialog: Failed to load non-native ColorDialog implementation:
      qrc:/qt-project.org/imports/QtQuick/Dialogs/quickimpl/qml/ColorDialog.qml:11 module "QtQuick.Layouts" is not installed

      I have attached a sample CMake project as a reproducible example. It will fail when built using a static Qt 6.4.2 build.

      Unless

      "import QtQuick.Layouts"

      {{ is added to the main.qml file}}

       

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            rnayabee Debayan Sutradhar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes