Results 1 to 2 of 2

Thread: Qwt & save as image

  1. #1
    Join Date
    Apr 2011
    Posts
    3
    Thanked 1 Time in 1 Post

    Default Qwt & save as image

    Hi to everybody,

    what i am trying to do, is save a plot i have created to a file...
    i tried some things i found here and around the net, but no luck...

    the tricky thing, is that i need to save the plot without showing it...
    that's because i need to create a big number of plots for my project (>100)
    so showing them is out of the question...

    Any ideas?

    Thank you in advance!
    Georgios

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qwt & save as image

    QwtPlotRenderer is responsible for the generation of documents. You can export into PDF ( recommended because it is a scalable vector format ) Postscript, SVG and any type of format that is supported by QImageWriter::supportedImageFormats ( not recommended, because not scalable ).

    You need to have a plot widget ( there is no separation between scene and view ) - but you can use the same plot widget for all of your plots that doesn't need to be visible ( nevertheless you need to call replot after attaching the items ).

    Simply define and export your scenes one by one.

    Uwe

Similar Threads

  1. Save Image of QGLWidget to file
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 3rd March 2010, 16:36
  2. How to save an image (png) into a xml file
    By richardander in forum Qt Programming
    Replies: 8
    Last Post: 9th October 2009, 09:57
  3. Save greyscale image
    By Lele in forum Qt Programming
    Replies: 8
    Last Post: 12th August 2008, 08:59
  4. is it possible to save a webpage as an image?
    By billconan in forum Qt Programming
    Replies: 2
    Last Post: 8th July 2008, 01:08
  5. save table as an image
    By ulmly in forum Qt Programming
    Replies: 4
    Last Post: 26th June 2008, 08:12

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.