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

QMLLINT Fix Suggestion not ideal to correct issue for RadialGradient on Rectangle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.11
    • 6.9
    • QML: Tooling
    • None

    Description

      When a developer assigns a RadialGradient to a Rectangle, for example, as background fill, then the QMLLInter posts the following warning:
      "Warning: /var/folders/7q/0ftm5_g54b91ck89ym4wjycr0000gp/T/tmp49y2_mlh.qml:19:9: RadialGradient was not found. Did you add all imports and dependencies? [import]
              RadialGradient

      {         ^^^^^^^^^^^^^^ *Info: Did you mean "Gradient"?*         \{*}

      Gradient {{*}"

      The suggestion to use a Gradient instead of RadialGradient is unlikely to correspond to the user's intention because the user has already taken the effort to define a RadialGradient. Would it be more helpful to indicate to the user that "RadialGradient can only be used with QML type Shape"?

      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
              peter.schneider Peter Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes