Is there a way to get the link to the caller in QML? I am looking at something that is equivalent to the 'this' pointer in QML
Example: Say I have a component that serves as a backend for a graphic element, such as a search tool for a video player. This backend will accept current and total video durations as input and periodically provide updates to the graphic search bar. Now, if this backend has a signal handler for a signal that sends current and total durations, it might look something like this:
Connections { target: sender //this onSendSeekUpdate() { //do something } }
Of course, I assume that this can be implemented in C ++ and then imported into QML. But I'm just wondering if QML supports this? So that I can immediately write such hooks in QML.
source share