Results 1 to 2 of 2

Thread: Detach QwtPlotCurve from only one QwtPlot

  1. #1
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Detach QwtPlotCurve from only one QwtPlot

    Hello,

    I'd like to attach one QwtPlotCurve to several QwtPlots. That is easy. But is there any way to detach this curve from only one plot? QwtPlotItem::detach() detaches the item from all plots... I need something like "QwtPlotItem::detachFrom(QwtPlot)". Is there any way to achieve this? I'm using Qwt 5.2.1.

    thanks!
    Felix

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Detach QwtPlotCurve from only one QwtPlot

    A plot item can only be attached to one plot. Attaching an item to a second plot automatically detaches it from the first one.

    Uwe

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

    FelixB (13th July 2011)

Similar Threads

  1. how to detach Tab page from QTabWidget?
    By rajesh in forum Newbie
    Replies: 3
    Last Post: 30th May 2012, 17:20
  2. detach only one qwt plot curve?
    By kja in forum Qwt
    Replies: 1
    Last Post: 3rd December 2010, 08:54
  3. Replies: 1
    Last Post: 9th December 2009, 18:14
  4. Replies: 2
    Last Post: 7th July 2009, 08:44
  5. Replies: 6
    Last Post: 14th May 2009, 13:02

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.