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

Add warnings for ambigous ids to qmllint

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.9
    • None
    • QML: Tooling
    • None

    Description

      Some ids easily conflict with properties and become ambigous, because the root item likely has properties with this name.

      These are the ids we do not allow in the visible tooling, because they can lead to subtle issues.

      "top", "bottom", "left", "right", "width", "height",
      "x", "y", "opacity", "parent", "item", "flow",
      "color", "margin", "padding", "print", "border", "font",
      "text", "source", "state", "visible", "focus", "data",
      "clip", "layer", "scale", "enabled", "anchors",
      "texture", "shaderInfo", "sprite", "spriteSequence", "baseState"
      "vector", "string", "url", "var", "point", "date", "size", "list",
      "enumeration"

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes