Results 1 to 3 of 3

Thread: getting attached curve to a plot

  1. #1
    Join Date
    Jul 2010
    Posts
    37
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default getting attached curve to a plot

    Seems a trivial question.. but I didn't find any method of QwtPlot to get a list of all curve (or better, all qwtplotitems) attached to itself.

    Right now I'm using internal list of curves, but i wonder: is it due by the architectural design ?
    More generically, the topic should be: how to traverse all items attached to a plot?.

    cheers


    (I'm using QWT 6.0.0 RC5)
    Last edited by corrado1972; 13th April 2011 at 09:31.

  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: getting attached curve to a plot

    See QwtPlotDict, it's a base class of QwtPlot.

    Uwe

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

    corrado1972 (13th April 2011)

  4. #3
    Join Date
    Jul 2006
    Location
    Cagliari - Sardinia - Italy
    Posts
    26
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: getting attached curve to a plot

    Have you try with QwtPlotDict::itemList()?

    It's return a list of QwtPlotItem. You can retrieve the list of all items if you don't pass any argument, or you can pass the rtti of the QwtPlotItem you want.

Similar Threads

  1. Replies: 9
    Last Post: 12th May 2014, 01:25
  2. detach only one qwt plot curve?
    By kja in forum Qwt
    Replies: 1
    Last Post: 3rd December 2010, 07:54
  3. How to plot tan(x) curve?
    By Name in forum Qwt
    Replies: 1
    Last Post: 17th September 2010, 13:20
  4. Replies: 2
    Last Post: 8th January 2010, 14:09
  5. Replies: 4
    Last Post: 9th January 2009, 11:57

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.