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

qmllint does not like Selectors

XMLWordPrintable

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

      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 
      ...

       

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes