I'm having a hard time understanding how to capture a screenshot of the phones screen. Not much clear advice on the web.

Can anyone tell me how screen capture is done, and how you can connect the C++ function to QML...?