RSATom / QmlVlc

[ABANDONED] libvlc wrapper for Qt Quick 2/Qml
Other
139 stars 56 forks source link

Get QPixmap #26

Closed AndreaD82 closed 9 years ago

AndreaD82 commented 9 years ago

Hi RSATom, i've put a QQuickView in a QWidget with createWindowContainer, is there a way to render the QWidget into a pixmap? like a preview?

Greetings

RSATom commented 9 years ago

you could try http://qt-project.org/doc/qt-4.8/qpixmap.html#grabWidget it's only for Qt 4.x

similar sample: https://github.com/RSATom/QmlVideoProducer

AndreaD82 commented 9 years ago

i've found this solution QImage preview = viewer->grabWindow();

AndreaD82 commented 9 years ago

Thanks for the support!

RSATom commented 9 years ago

http://stackoverflow.com/questions/10381854/how-to-create-screenshot-of-qwidget