How to Capture an Image in a QML
I would like to save an image when my QML application is running, just like a camera inside the application,
How can i do that?
The source code for the qmlviewer app uses the line
where canvas is the QDeclarativeView* and snapFileName is the filename to save.