[Qt-interest] View JPEG in QGLWidget

Constantin Makshin cmakshin at gmail.com
Fri Jul 29 17:25:58 CEST 2011


Could you create a small example to demonstrate the problem (with some static JPEG image of the same size as your camera generates)? That would allow others, including me, perform a deeper "research" to find a solution.

On Friday, July 29, 2011 11:26:00 AM Brilliantov Kirill Vladimirovich wrote:
> Hello Constantin!
> I try use GL_ARB_texture_rectangle extension, but I get only error 
> invalid operation.
> This is strange, but in 
> http://www.opengl.org/sdk/docs/man/xhtml/glEnable.xml and 
> http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml I don't see 
> texture target GL_TEXTURE_RECTANGLE_ARB.
> Also I try scale my image to 256x256:
> image = QGLWidget::convertToGLFormat(QImage::fromData(jpg).scaled(256, 
> 256, Qt::IgnoreAspectRatio));
> But this is not solve problem.
> Any idea?
> Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110729/203b58ae/attachment.bin 


More information about the Qt-interest-old mailing list