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

QML readonly alias property can be defined

    XMLWordPrintable

Details

    • 4a9d10d9fb3c4344019d43505a5c76b1fd67ddf2 (qtdeclarative)

    Description

      Documentation says, that read only alias property cannot be defined:

      Note: A read-only property cannot also be a default or alias property.

      But I can successfully create read only alias and it has both property change signal and handler for that signal. Moreover, if aliased property changes value, all notifications works fine.

      As a result of running attached qml program I've got this output:

      Test changed! test
      Test changed! test

      Attachments

        1. ReadonlyAlias.qml
          0.4 kB
          Nikita Krupenko
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shausman Simon Hausmann
            krnekit Nikita Krupenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes