That all sounds like it would be better handled on the QML side, reacting to changes of C++ data.

But maybe you can post the function you are attempting to call?

Because needing the return value is basically the only use case where one would even consider a C++ -> QML dependency and even that often has better alternatives.

Cheers,
_