Results 1 to 2 of 2

Thread: Weird QwtLegend Behaviour

  1. #1
    Join Date
    Jun 2011
    Posts
    17
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Weird QwtLegend Behaviour

    So my QwtPlot is populated with data and plotted when the user imports a file. The data can also be scaled in realtime using some combo boxes. The problem I am having is if the user imports another file then the other plot curves and the corresponding legend items are not being deleted. I am using:

    this->detachItems(QwtPlotItem::Rtti_PlotCurve);

    Which in the case that I am rescaling the curves works perfectly fine, but for some reason when I re-import a file the curves do not get deleted. Any ideas to why this might be happening?

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

    Default Re: Weird QwtLegend Behaviour

    Quote Originally Posted by BettaUseYoNikes View Post
    Any ideas to why this might be happening?
    Should be a problem of the application code: detachItems is o.k..

    Uwe

Similar Threads

  1. weird behaviour with QItemSelectModel
    By Bebert218 in forum Qt Programming
    Replies: 0
    Last Post: 8th July 2011, 02:02
  2. Weird behaviour of QToolButton on a tablet PC with Windows 7
    By ChiliPalmer in forum Qt Programming
    Replies: 0
    Last Post: 9th March 2011, 20:39
  3. QDockWidget on 4.6.X , weird behaviour
    By benacler in forum Qt Programming
    Replies: 0
    Last Post: 8th April 2010, 14:44
  4. Weird behaviour with QMdiSubWindows in a QMdiArea?
    By qt_noob in forum Qt Programming
    Replies: 2
    Last Post: 4th April 2009, 16:48
  5. weird repaint() behaviour
    By georgie in forum General Discussion
    Replies: 1
    Last Post: 1st May 2006, 13:27

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.