That is the wrong way around.

Make your QML elements call C++ methods instead.

Cheers,
_