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

Push users to use the DEPENDENCIES option in qt_add_qml_module

XMLWordPrintable

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes