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

You cannot override the default property to point to another property after it has been defined in an extension object

    XMLWordPrintable

Details

    Description

      1. Create a base class A and make it visible in QML with an extension object that introduces a default property.
      2. Derive a class B from the base class A, and define new default property for class B.
      -> What should happen: default property defined in the extension object is overridden
      -> What happens: because extension objects are handled last, the overriding does not go in order of derivation, thus default properties defined in the extension class cannot be overridden by deriving classes.

      See example code in attachments.

      Attachments

        1. example.diff
          5 kB
          Joona Petrell
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aakenned Aaron Kennedy
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes