Results 1 to 5 of 5

Thread: Export SVG: Qwt Bug?

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

    Default Export SVG: Qwt Bug?

    I think there is a bug, which is easily checked by using the bode example.

    If you put his line in the constructor of bode_cpp
    Qt Code:
    1. setAxisScale(QwtPlot::yLeft,0,40);
    To copy to clipboard, switch view to plain text mode 
    by forcing the y scale to be from 0 40, and if you then export in SVG,
    you will see that the plot is painted outside the canvas in the svg file.
    It seems that values behond the limit set by setAxisScale() are handled in the wrong way.
    Uwe, do you agree?

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

    Default Re: Export SVG: Qwt Bug?

    Nobody checked this error? It is very important to get svg file in the correct form....
    G

  3. #3
    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: Export SVG: Qwt Bug?

    Looks like the svg paint engine ignores clipping at all. Looking into Qt 4.5.0 beta I can't see any new code, so it doesn't seem to be on the TODO list of the Qt developers.

    If you enable QwtPlotCurve::ClipPolygons, the curves are clipped against the paint device boundaries ( QPainter::window() ). Then you have to patch qwt_plot_curve.cpp, so that the canvasRect is used instead of painter->window().

    Uwe

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

    Default Re: Export SVG: Qwt Bug?

    Why not submitting a patch to Qwt in the subversion ?
    G

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

    Default Re: Export SVG: Qwt Bug?

    Moreover, for me is quite hard to understand where to patch...may you be more detailed...?
    G

Similar Threads

  1. QWT embedded
    By damien in forum Qwt
    Replies: 3
    Last Post: 20th February 2011, 19:26
  2. export and printing qwt plot
    By giusepped in forum Qwt
    Replies: 6
    Last Post: 17th December 2008, 07:04
  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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.