Results 1 to 4 of 4

Thread: is there any QwtPlotCurve::function to remove all curves that are attached?

  1. #1
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    70
    Qt products
    Qt5
    Platforms
    Windows

    Default is there any QwtPlotCurve::function to remove all curves that are attached?

    hi,
    is there any QwtPlotCurve::function to remove all curves that are attached? for example 10 curves have attached and now all of these must be detached. is there any function for this?

  2. #2
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    120
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: is there any QwtPlotCurve::function to remove all curves that are attached?

    Hello,

    Iterate over the result of QwtPlot::itemList(int rtti) (more precisely: QwtPlotDict::itemList(int rtti)) where rtti is set to QwtPlotItem::Rtti_PlotCurve and detach each item.

    Best regards
    ars

  3. #3
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: is there any QwtPlotCurve::function to remove all curves that are attached?

    You can also remove all points from QwtPlotCurve by QwtPlotCurve::data()->clear()

    Wait a minute... You want to remove curves not data, my fault. Can't delete message.

  4. #4
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: is there any QwtPlotCurve::function to remove all curves that are attached?

    Quote Originally Posted by Alex22 View Post
    hi,
    is there any QwtPlotCurve::function to remove all curves that are attached? for example 10 curves have attached and now all of these must be detached. is there any function for this?
    http://qwt.sourceforge.net/class_qwt...d7e84696fbdfc0
    [D
    Last edited by gorec323; 13th January 2016 at 08:29. Reason: link error

  5. The following user says thank you to gorec323 for this useful post:

    Alex22 (14th January 2016)

Similar Threads

  1. Problem with QwtPlotCurve::drawLines() function
    By vinothrajendran in forum Qwt
    Replies: 1
    Last Post: 8th February 2015, 10:46
  2. Replies: 6
    Last Post: 21st September 2012, 13:24
  3. Replies: 1
    Last Post: 11th May 2012, 08:02
  4. QwtPlotcurve multiple curves
    By garij in forum Qwt
    Replies: 4
    Last Post: 10th May 2012, 12:30
  5. Replies: 2
    Last Post: 14th April 2008, 11:03

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.