Details
-
User Story
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.1.2
-
None
Description
i just wanted to make sure this is a feature and not a bug. (could not find it explicitly mentioned in the docs, but i guess it's implied that on<Property>Changed: is the same thing as using connect()?)
the Bar.qml extends Foo.qml and would like to overwrite onAChanged:
Foo.qml
import QtQuick Item { property int a property int b onAChanged: console.log("Foo.a") onBChanged: bChange() function bChange () { console.log("Foo.b") } }
Bar.qml
import QtQuick Foo { onAChanged: console.log("Bar.a") function bChange () { console.log("Bar.b") } Component.onCompleted: { a = 1 b = 2 } }
but instead the onAChanged from Bar.qml is added:
$ qml Bar.qml qml: Foo.a qml: Bar.a qml: Bar.b
i was hoping for output like this:
$ qml Bar.qml qml: Bar.a qml: Bar.b
if that is a feature, i guess the easiest way to overwrite on<Property>Changed is the way done for b?