Results 1 to 2 of 2

Thread: QwtPlotRenderer::renderDocument()

  1. #1
    Join Date
    Oct 2012
    Location
    Burlington, Massachusetts, United States
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QwtPlotRenderer::renderDocument()

    Greetings Community!

    Is there a good reason that this method doesn't return the bool success/fail from QImage::save()? Is there another way to obtain a status?

    Thanks!

    -jrm

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

    Default Re: QwtPlotRenderer::renderDocument()

    Is there a good reason that this method doesn't return the bool success/fail from QImage::save()?
    No good one - maybe it is because PDF is by far the most important format ( vector graphics ! ) and here Qt doesn't offer any return code ( the same for SVG and Postscript ).

    Is there another way to obtain a status?
    Well, QwtPlotRenderer::renderDocument is only a convenience API - you can simply copy the 10 lines dealing with QImage to application code.

    Another option might be to compare the date of the output file. That works for all output formats, but of course doesn't detect all types of write errors.

    Uwe

Similar Threads

  1. Replies: 5
    Last Post: 1st March 2012, 10:13
  2. Possible bug in QwtPlotRenderer
    By BettaUseYoNikes in forum Qwt
    Replies: 1
    Last Post: 29th November 2011, 08:00
  3. QwtPlotRenderer and ExternalLegend position
    By frankiefrank in forum Qwt
    Replies: 3
    Last Post: 29th November 2011, 07:53
  4. Problems with QwtPlotRenderer from Qwt 6
    By mariposa in forum Qwt
    Replies: 24
    Last Post: 6th October 2010, 13:08

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.