Results 1 to 2 of 2

Thread: Save a QwtPlot3D as PDF

  1. #1
    Join Date
    Feb 2010
    Posts
    64
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Save a QwtPlot3D as PDF

    Hi guys,

    I've seen the code in the mesh2 example to print a surfaceplot at pdf.

    Here is the code
    Qt Code:
    1. //FIRST PART
    2. VectorWriter* handler = (VectorWriter*)IO::outputHandler("PDF");
    3. handler->setTextMode(VectorWriter::TEX);
    4. ////////////////////////////////
    5.  
    6. // SECOND PART
    7. VectorWriter* vw = (VectorWriter*)IO::outputHandler("PDF");
    8. if (vw)
    9. vw->setSortMode(VectorWriter::BSPSORT);
    10. //////////////////////////////////
    11.  
    12. IO::save(m_3dPlot, "myfile.pdf", "PDF" );
    To copy to clipboard, switch view to plain text mode 

    Now the strange things. If I comment out the SECOND PART, a the pdf is created but it contains only the graph and axes (no labels, no numbers, in generl, no text).

    If I keep the SECOND PART and commet out the FIRST PART, the the resutl is shown in the attached file.
    PFDSaving.jpg

    The text is not saved properly.

    Any idea?

    Thanks
    Last edited by locke; 17th August 2010 at 10:33.

  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: Save a QwtPlot3D as PDF

    Better ask questions about QwtPlot3D on its own forum. Micha doesn't listen here.

    Uwe

Similar Threads

  1. QwtPlot3D compilation problem
    By gutiory in forum Qwt
    Replies: 2
    Last Post: 19th January 2012, 06:41
  2. QwtPlot3d and QMdiArea
    By YaK in forum Qwt
    Replies: 0
    Last Post: 17th March 2010, 04:53
  3. Replies: 1
    Last Post: 8th January 2010, 20:03
  4. Replies: 0
    Last Post: 31st December 2009, 09:31
  5. Windows+qt4+QwtPlot3d
    By Colx007 in forum Qwt
    Replies: 1
    Last Post: 8th March 2008, 17:36

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.