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

Some way to get base type members

    XMLWordPrintable

Details

    Description

      In QML, you can effectively derive TypeA by creating a TypeB.qml looking like

      TypeA {
          function reimplemented() {
              foo();
          }
      }
      

      However there is no way to get to the base TypeA.reimplemented in case you want to call the base type and then just add something more too it.

      Arguably QML is following a more JS like prototype based model that doesn't have proper inheritance, but it is often used in this way and it would be nice to be a little more powerful than JS, at least for the QML types.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtqmlteam Qt Qml Team User
              aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
              Votes:
              24 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes