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

qmllint does not like Selectors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2.4, 6.3.1
    • QML: Tooling
    • None
    • All

    Description

      I have 2 StyleHelper.qml files - a base one and a specific one for the Material style:

      find . | grep StyleHelper
      ./+Material/StyleHelper.qml
      ./StyleHelper.qml 

      And both are added to a QML module in CMakeLists.txt

      qt_add_qml_module(mobile_module
          ...
          QML_FILES
              StyleHelper.qml
              +Material/StyleHelper.qml
              ... 

      qmllint does however not like this at all:

      Warning: mobile/AboutDialog.qml: Warnings occurred while importing base modules:
      ---
      Warning: Ambiguous type detected. StyleHelper 1.0 is defined multiple times.
      Warning: Ambiguous type detected. StyleHelper 1.0 is defined multiple times.
      --- 

      the generated qmldir contains:

      ...
      StyleHelper 1.0 StyleHelper.qml
      StyleHelper 1.0 +Material/StyleHelper.qml 
      ...

       

       

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              rgriebl Robert Griebl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes