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

qmllint doesn't understand QColor

    XMLWordPrintable

Details

    • All

    Description

      Running qmlling in a project that exposes a QColor property gives out the following warning

       

      Warning: /Users/user/untitled1/main.qml:19:9: No type found for property "color". This may be due to a missing import statement or incomplete qmltypes files. [missing-type]
              color: root.myColor
              ^^^^^
      Warning: /Users/user/untitled1/main.qml:23:18: Type "QColor" of property "color" not found. This is likely due to a missing dependency entry or a type not being exposed declaratively. [unresolved-type]
              text: mo.color
                       ^^^^^

       

      I'm attaching the simple project to reproduce the problem.

       

      Just run

      make && make all_qmllint

      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
              albert.astals.cid.avid Albert Astals Cid
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes