Results 1 to 2 of 2

Thread: Exporting QGLWidget content in a vector graphics format

  1. #1
    Join Date
    Sep 2007
    Location
    Vienna, Austria
    Posts
    19
    Thanks
    10
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Exporting QGLWidget content in a vector graphics format

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Exporting QGLWidget content in a vector graphics format

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    y.shan (24th January 2011)

Similar Threads

  1. Redrawing QGLWidget with 3D+2D graphics
    By bmpix in forum Qt Programming
    Replies: 2
    Last Post: 1st October 2012, 20:10
  2. How to save graphics as dxf format
    By soumya in forum Qt Programming
    Replies: 4
    Last Post: 31st December 2009, 20:32
  3. Painting vector graphics...
    By Muffin in forum Newbie
    Replies: 2
    Last Post: 5th November 2009, 08:54
  4. Exporting to RTF
    By gruszczy in forum Qt Programming
    Replies: 2
    Last Post: 19th February 2009, 00:00
  5. big vector graphics
    By Colx007 in forum Qt Programming
    Replies: 5
    Last Post: 22nd January 2008, 13:36

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.