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

qml: required does not work on alias properties

    XMLWordPrintable

Details

    Description

      It seems that required alias properties do not work at runtime, see attached Main.qml file: Two properties of the component are made required: an alias one and a non-alias one. The non-alias one works at runtime and has the right value, but the alias one (when uncommented) leads to a runtime error.

      Related: it seems that we error out about `required property alias hello: ...` in qmljsimportvisitor, maybe we should allow this case instead?

      Attachments

        1. Main.qml
          0.9 kB
          Sami Shalayel
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            sami.shalayel Sami Shalayel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes