Results 1 to 1 of 1

Thread: Qwt 5.2 to 6.1 change: NaN values no longer skipped, as discontinuities.

  1. #1
    Join Date
    Jun 2008
    Location
    Boulder, Colorado, USA
    Posts
    70
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qwt 5.2 to 6.1 change: NaN values no longer skipped, as discontinuities.

    It was significant to us that NaNs encountered within curve data resulted in a discontinuity of the drawn curve. This no longer occurs (at least, by default) in Qwt 6.1. See these 5.2.3 and 6.2.1 examples:

    NaNs-523.jpg NaNs-612.jpg

    Is there some way of restoring the 5.2 appearance with Qwt 6.1?

    Thank you in advance.


    -----
    P.S. ... Back peddling! Actually, the skipping of NaNs was not default Qwt behavior!

    We had provided our own implementation of the QwtPlotCurve::drawCurve() virtual method which was no longer getting called. (A parameter had been added in the Qwt method. And we didn't have the new "override" keyword in our method declaration which would have caught that difference).

    Qt Code:
    1. virtual void drawCurve (QPainter* painter,
    2. int style,
    3. const QwtScaleMap& xMap,
    4. const QwtScaleMap& yMap,
    5. const QRectF& canvasRect, // <<< New in 6.0 or 6.1
    6. int from,
    7. int to) const override; // <<< Always use "override".
    To copy to clipboard, switch view to plain text mode 
    Last edited by philw; 16th October 2015 at 23:38.

Similar Threads

  1. Replies: 4
    Last Post: 27th July 2015, 05:46
  2. Breakpoints skipped in debugging
    By tzarhaxaar in forum Qt Programming
    Replies: 0
    Last Post: 23rd December 2012, 18:14
  3. Qt - change the RGB values
    By t-basic in forum Newbie
    Replies: 1
    Last Post: 26th October 2011, 11:55
  4. How to change the values of the pixels in an Qimage?
    By kid17 in forum Qt Programming
    Replies: 8
    Last Post: 23rd November 2008, 20:52
  5. QSqlTableModel cannot change values
    By raphaelf in forum Newbie
    Replies: 2
    Last Post: 23rd May 2007, 08:01

Tags for this Thread

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.