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

QQmlJSScope fails to correctly recognize required aliases to non required property when marked as required outside the declaration.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 FF
    • 6.8
    • QML: Tooling
    • None
    • 8e3edefc8 (dev)

    Description

      Given:

      Item {
        id: self
        property int foo
        property alias aliasToFoo: self.foo
        required aliasToFoo
      }
      

      `aliasToFoo` should be a required property but, given a scope, `scope->isPropertyRequired("aliasToFoo")` will return false while it should return true.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-123837
          # Subject Branch Project Status CR V

          Activity

            People

              diseraluca Luca Di Sera
              diseraluca Luca Di Sera
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes