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

Some way to get base type members

XMLWordPrintable

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes