Hi,
anybody know if there's a way to have the *super* keyword (ES6
specification) equivalent into a qml script? I have seen the signal
workaround (see link below), but sadly this does not get reevaluated like
functions parameters, it only get called once which is not correct with
what I want to do.

I don't expect anything until super is introduced into Qml javascript but
if anybody have a way I would be grateful.

When can we expect to have the super keyword support into Qml?

Super keyword info:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/super

Signal workaround, but is imperative and cannot really be used inside a
binding like function can right now
https://forum.qt.io/topic/10265/solved-how-to-call-parent-qml-screen-s-javascript-function/4

https://bugreports.qt.io/browse/QTBUG-25942
This is the related bug

basic example:
A.qml
Item
{
  function toto()
  {
    return "base toto";
  }
}

B.qml
A
{
   function toto()
   {
     return "a non " + super.toto(); // or any equivalent to the
super.toto()
   }
}

Thanks,
Jerome
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to