[Qt-qml] Snapshot of QML document

Pavol Rusnak stick at gk2.sk
Tue Aug 17 09:41:19 CEST 2010


Hi!

I would like to ask whether there is an effective way how to create a
snapshot or screenshot of QML document. Currently I use this hack:

qmlviewer foo.qml -recordfile out.png -recordrate 100 -autorecord 11

But I need to kill qmlviewer afterwards and remove "0000" from
out0000.png filename.

Something like

qmlviewer foo.qml -snapshot foo.png

(immediately exiting after creating foo.png) is what I need. Is there
such an option or it is not yet implemented?

-- 
Best Regards / S pozdravom,

Pavol Rusnak <stick at gk2.sk>



More information about the Qt-qml mailing list