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

Incorrect Semantic Highlighting for QML Property Chains

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.8
    • 6.8
    • QML: Tooling
    • None

    Description

      The semantic highlighting system for QML incorrectly distinguishes between qualified property lookups based on scope, when it should only be making these distinctions for unqualified lookups.

      In property chains (e.g., foo.bar.baz), only the first part (foo) should receive special highlighting based on its source (ID, local variable, root object, context property), while all subsequent parts (bar, baz) should be highlighted uniformly as "Field" regardless of their source.

      The fix should:

      Apply special highlighting only to the first part of property chains based on scope analysis
      Apply consistent "Field" highlighting to all qualified property accesses
      Consider similar treatment for function calls in property chains (e.g., foo.bar().baz)

      Attachments

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

        Activity

          People

            semih.yavuz Semih Yavuz
            semih.yavuz Semih Yavuz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes