[Qt-interest] Phonon - Current image from VideoWidget

Gustavo de Sá Carvalho Honorato gustavohonorato at gmail.com
Tue Mar 29 22:21:38 CEST 2011


Hi,

I'm using Phonon to handle video. I want to get an QImage from VideoWidget
so I can show it as a preview. I tried the snapshot() method, but it returns
an invalid image.

I also tried QPixmap::grabWidget(). It returned a black image. I think
that's because it's executed before the widget is showed.

How can I get an QImage that represents the current frame with Phonon?

Thanks,
  Gustavo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110329/093ec308/attachment.html 


More information about the Qt-interest-old mailing list