Results 1 to 13 of 13

Thread: Qwt 5.1 + Qt 4.5 - SVG no clipping

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qwt 5.1 + Qt 4.5 - SVG no clipping

    I am trying to export a picture in svg format.
    With Qwt 5.1 and Qt 4.4 all worked fine.
    But now, if I use Qt 4.5.0 I have a plot outside the clipping region, like in the figure.
    All clippings are set in the QwtPlotCurve.
    Any idea ?
    The code is quite standard

    Qt Code:
    1. void MyPlot::exportSVG()
    2. {
    3. QString fileName;
    4.  
    5.  
    6. fileName = QFileDialog::getSaveFileName(this, tr("Nome file da esportare"), recentExportPath,"Graphic files ( *svg)");
    7.  
    8.  
    9. if ( !fileName.isEmpty() )
    10. {
    11. fileName = MyMath::checkFormat(fileName,"svg");
    12. QSvgGenerator generator;
    13. generator.setFileName(fileName);
    14. generator.setSize(QSize(1024, 800));
    15. int options = QwtPlotPrintFilter::PrintAll;
    16. options |= QwtPlotPrintFilter::PrintBackground;
    17. options |= QwtPlotPrintFilter::PrintFrameWithScales|QwtPlotPrintFilter::PrintMargin;
    18. filter.setOptions(options);
    19.  
    20.  
    21. print(generator,filter);
    22. }
    To copy to clipboard, switch view to plain text mode 
    I tried also qwt 5.2 + qt4.5, but a segfault error happens.
    G
    Attached Images Attached Images

Similar Threads

  1. QWT embedded
    By damien in forum Qwt
    Replies: 3
    Last Post: 20th February 2011, 19:26
  2. Step by step Qwt on MinGW
    By Doug Broadwell in forum Qwt
    Replies: 2
    Last Post: 23rd January 2009, 00:19
  3. QWT introduction
    By nitriles in forum Qwt
    Replies: 4
    Last Post: 28th September 2007, 10:48
  4. How to upgrade Qwt 5.0.1 to Qwt 5.0.2
    By luffy27 in forum Qwt
    Replies: 1
    Last Post: 15th July 2007, 19:55
  5. use interesting QWT Library with QT3.X
    By raphaelf in forum Qwt
    Replies: 2
    Last Post: 23rd January 2006, 11:24

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
  •  
Qt is a trademark of The Qt Company.