[Qt-interest] save widget snapshot in file
Thomas McGuire
thomas.mcguire at kdab.com
Fri Aug 19 13:08:02 CEST 2011
Hi,
On Friday, August 19, 2011 07:06:22 AM Brilliantov Kirill Vladimirovich wrote:
> Mystical Rose wrote on 08/19/2011 12:48 AM:
> > Let me know what do you mean by dynamic image?
> > Do you want to capture all the activities going on ?
>
> Hello Mystical Rose!
> I have to view image from IP-camera and I use QGLWidget for this.
> When I view one image from local file all ok.
> I need to save current image from QGLWidget.
When you loaded an image from local file, did you paint that into a QGLWidget?
If, in your test, you painted the local image into some other widget, then the
problem is QGLWidget.
My guess is that because of the OpenGL usage, QGLWidget does not render into
the normal backing surfaces like every other widget, so QPixmap::grabWidget()
does not work. In that case, try QGLWidget::renderPixmap().
Regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3637 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110819/142749fe/attachment.bin
More information about the Qt-interest-old
mailing list