I have a base class element something like this:
Base .qml:
Item { Thing { id: theThing; onMySignal: { console.log("The signal"); } } }
And I'm trying to make a derived element - Derived.qml .
How can I override the onMySignal theThing handler? I tried such things ...
Derived .qml:
Base { theThing.onMySignal: { console.log("Do different things with theThing in Derived") } }
but I cannot find anything to tell me how to express it syntactically correctly, or how and how to do it!
source share