Results 1 to 3 of 3

Thread: Missung method QwtPlot::clear() in Qwt 6.0.1

  1. #1
    Join Date
    Mar 2012
    Posts
    1
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Missung method QwtPlot::clear() in Qwt 6.0.1

    I recently updated my Qwt version from 5.2.1 to 6.0.1 and am now missing the QwtPlot::clear() method to clear all attached plots.
    Also i could not find another method that would serve as replacement for this. I am grateful for help !
    (I am using Qt 4.6.2 on Ubuntu Linux 10.04 with QtCreator)

  2. #2
    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: Missung method QwtPlot::clear() in Qwt 6.0.1

    Qt Code:
    1. plot->detachItems( QwtPlotItem::Rtti_PlotCurve, ... );
    2. plot->detachItems( QwtPlotItem::Rtti_PlotMarker, ... );
    To copy to clipboard, switch view to plain text mode 
    Uwe

  3. The following user says thank you to Uwe for this useful post:

    maras (20th March 2012)

  4. #3

    Default Re: Missung method QwtPlot::clear() in Qwt 6.0.1

    QwtPlotDict::detachItems();

Similar Threads

  1. Calling a method from a non-member method
    By AndresBarbaRoja in forum Newbie
    Replies: 5
    Last Post: 19th March 2011, 10:38
  2. Replies: 1
    Last Post: 25th November 2010, 11:37
  3. Replies: 6
    Last Post: 14th May 2009, 12:02
  4. Replies: 2
    Last Post: 5th December 2008, 20:11
  5. Replies: 1
    Last Post: 9th February 2008, 12:46

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.