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

qmllint does not resolve other modules (and no types in other modules) in cmake projects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.4.3
    • QML: Tooling
    • None
    • All

    Description

      I'm using VSCode and cmake with ninja to build Qt QML projects. Everything works well except qmllint gives a lot of warnings for the use of qml modules. The qml modules are added as subdirectories in the same project, and the build and use in the application work fine. It is just qmllint that seems not to support them?!

      When I run ninja with the all_qmllint target, it will complain about:

      • Warning: Failed to import XXX. Are your import paths set up properly? for all modules
      • Unqualified access for all C++ types from other modules except the main module (executable)

      I can reproduce the problem for example with https://gitlab.com/basic53/DemoApp

      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
            emmenlau Mario Emmenlauer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes