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

qmllint does not see QColor and QQuickIcon

    XMLWordPrintable

Details

    • c6b6839cf6e051988c462d826f5f0b851321ff0e 01b5c2f53374c5a744a88d15de277a62be3c013c ef4d4093430af0eeda02c76c32462d4529291271 a37c1e003043b0a0f40c004c40f6b0c2d79e3835 8d095369866a624db9e40b9c1e517be0a88881f3

    Description

      Attached files produce errors like:

      > qmllint.exe BasicItem.qml
      Warning: BasicItem.qml:5:38: Type "QColor" of property "backgroundColor" not found. This is likely due to a missing dependency entry or a type not being exposed declaratively.
      
      > qmllint.exe BasicItemIconLabel.qml
      
      Warning: BasicItemIconLabel.qml:8:9: No type found for property "icon". This may be due to a missing import statement or incomplete qmltypes files.
      
             icon: action.icon
      

      Further qmllint prints unqualified access warnings When a Component declaration references an object from another scope, but with correct qualifier, Attached simple MyItem.qml file which can be used to see this.

      Attachments

        1. MyItem (1).qml
          0.3 kB
        2. BasicItemIconLabel.qml
          0.2 kB
        3. BasicItem.qml
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            poikelin Joni Poikelin
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes