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

Correctly set up grouped properties in QQmlJSImportVisitor

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.4
    • 6.3
    • QML: Compiler, QML: Tooling
    • None

      To properly analyse code in the QML code model, we need to have proper support for grouped properties (which are required for important properties like anchors).

       

      Currently, we don't set them up correctly in the QQmlJSScope tree.

       

      Currently, we e.g. end up with an invalid binding on a nonexisting fill property when writing

      Item {anchors.fill: parent}
      

      instead of a binding to the Item's anchor property, and a binding to anchor's fill property.

      Related: the TODO in 

      bool QQmlJSImportVisitor::visit(UiScriptBinding *scriptBinding)

       

      There are probably  other broken partsj

        1. A.qml
          0.1 kB
          Fabian Kosmale
        2. B.qml
          0.0 kB
          Fabian Kosmale
        For Gerrit Dashboard: QTBUG-100168
        # Subject Branch Project Status CR V

            fabiankosmale Fabian Kosmale
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes