Results 1 to 1 of 1

Thread: Bug in changing type of curve fitter or misuse?

  1. #1
    Join Date
    May 2010
    Posts
    86
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Bug in changing type of curve fitter or misuse?

    Hi Uwe,

    I have implemented the following slot to change fitter type according to user preference.

    Qt Code:
    1. void ChartPlot::useSpline(bool on, bool refresh)
    2. {
    3. if (on)
    4. {
    5. curve->setCurveFitter(curveFitter);
    6. }
    7. else
    8. {
    9. QwtWeedingCurveFitter *curveFitter = new QwtWeedingCurveFitter;
    10. curve->setCurveFitter(curveFitter);
    11. }
    12. if (refresh) replot();
    13. }
    To copy to clipboard, switch view to plain text mode 

    Somehow only the last indexed curve in chart will change its shape after re-plot.
    Can you please check it? I'm using 6.00-rc5


    Added after 13 minutes:


    Please, delete this post. I have only modified one curve.
    Last edited by falconium; 6th May 2011 at 23:18.

Similar Threads

  1. QSlider: changing the groove without changing the handle
    By Olivier Berten in forum Qt Programming
    Replies: 3
    Last Post: 30th April 2013, 11:02
  2. Replies: 4
    Last Post: 29th April 2010, 07:11
  3. Replies: 1
    Last Post: 22nd January 2010, 15:34
  4. Replies: 9
    Last Post: 2nd December 2009, 19:59
  5. Replies: 2
    Last Post: 10th August 2009, 10:45

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.