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

The "dependencies" field in *.qmltypes is unused

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.0
    • 5.15.0 Beta3
    • QML: Tooling
    • e52e7ad76edc6012285db6c83eb12e8724a234ac 6d3aae3cf47fbf21bd27eda7a249c2a23308156e

    Description

      The qmltypes format has a field "dependencies". This field can contain a list of URIs of other modules. qmlplugindump and qmltyperegistrar generate these by copying the dependencies.json file given as argument into it.

      No tool, as far as I can see evaluates the dependencies. Furthermore, it is currently unclear how to handle types from other modules we depend on in qmltypes. For example, the type "QtQuick/Application" belongs to QtQuick and its C++ type QQuickApplication derives from QQmlApplication. That type is defined in QtQml, but not exported to QML. Therefore, it appears as anonymous dependent type in QtQuick's plugins.qmltypes. What should happen if QQmlApplication was exported to QML in QtQml?

      As additional food for though, we do have "import" as well as "depends" fields in qmldir. "import" imports the given, not necessarily related module into the same namespace. "depends" in qmldir is also unclear to me.

      We need to clarify what these fields should mean and use them correctly.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes