How to connect QML signals to C++ slots?

Thanks for everyone who tried to help here!

I’ve now solved the issue by using another method to connect the signal.

Thanks again for your help!