PDA

View Full Version : Exporting QGLWidget content in a vector graphics format



y.shan
24th January 2011, 14:51
Hi,

I'm trying to export a picture drawn with OpenGL standards using QGLWidget to a vector graphics format.

I checked the QtSvg Module which seems to be suitable for this, but there you have to draw the content using a QPainter. Unfortunately I got stuck at this point since i found no way of connecting the GL routines with the QSvgGenerator.

Is there a way using Qt to do this?

wysota
24th January 2011, 14:57
OpenGL outputs a raster (bitmap) and not a vector thus it is not possible to save the output of the GL pipeline to any vector format.