http://qt-project.org/doc/qt-5/qml-qtquick-canvas.html#save-method
bool save(string filename)
Save the current canvas content into an image file filename. The saved image format is automatically decided by the filename’s suffix.
Note: calling this method will force painting the whole canvas, not just the current canvas visible window.
↧