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

Seperate scope is created with generalized group properties

    XMLWordPrintable

Details

    Description

      Consider this example.

       

      // normal case
      import QtQuick
      Text {
          id: root
          font {
              pixelSize: 12
          }
          font.family: "serif"
      } 

      Here only one qqmljsscope is created for font, which is as expected.

       

       

      Now consider this example. We use font as generalized group property here.

       

      // Generalized group properties
      import QtQuick
      Text {
          id: root
          font {
              pixelSize: 12
          }
          Binding {
              root {font.family: "serif"}
          }
      } 

       

      In this case, there is a separate scope created for "font" inside Binding object.

       

      Then we can't retrieve the same scope with typeResolver, which affects tooling in many aspects.

      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
            semih.yavuz Semih Yavuz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes