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

QtQuick.tooling Module wants QtQml's Component instead of QtQuick.tooling's

    XMLWordPrintable

Details

    • b61c19ff8 (dev)

    Description

      I cannot load .qmltypes file as qml component

      Example command and output:

      gamer@archlinux> qml6 /usr/lib/qt6/qml/QtQml/Base/plugins.qmltypes  
      QQmlApplicationEngine failed to load component
      
      file:///usr/lib/qt6/qml/QtQml/Base/plugins.qmltypes:9:5: Cannot assign object to list property "components"
      
      qml: Did not load any objects, exiting.
      

      After experiments I found that .qmltypes root component, Module, excepts children to be Component from QML module (import QML)

      I provide two examples. First one contains sample .qmltypes file and parts of QtQuick.tooling module, which is needed for example. Second contains sample files, but in Module.qml Component is explicitly imported from right module.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            alteve3di Evgeniy Nuromskiy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes