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

Push users to use the DEPENDS option in qt_add_qml_module

    XMLWordPrintable

Details

    Description

      If you don't, you manage your dependencies via import statements in QML files. qmlimportscanner hast to read those, and you have to manually run CMake everytime you add or remove a dependency. This is brittle.

      The DEPENDS option states the dependencies of a module in a much clearer way and allows qmllint's and qmlcachegen's type inference to do a better job. In order to add or remove a dependency there, you edit the CMakeLists.txt file which automatically triggers a re-run of CMake.

      Attachments

        Issue Links

          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:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes