Results 1 to 3 of 3

Thread: how to disable legend of a QwtPlotCurve in Qwt-5.2 ?

  1. #1

    Default how to disable legend of a QwtPlotCurve in Qwt-5.2 ?

    for one line I don't want to show its legend, how to disable it ? the enableLegend() was deprecated in qwt-5.2.

    QwtPlotCurve *maglayout = new QwtPlotCurve();
    maglayout->attach(this);

    Thanks.

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

    Default Re: how to disable legend of a QwtPlotCurve in Qwt-5.2 ?

    maglayout->setItemAttribute(QwtPlotItem::Legend, false);

    Uwe

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

    lhdamiani (20th March 2013)

  4. #3
    Join Date
    Apr 2013
    Posts
    63
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to disable legend of a QwtPlotCurve in Qwt-5.2 ?

    setItemAttribute(QwtPlotItem::Legend, false); is not working qwt6. In my case the label text is empty. But still it is showing a color box in legend
    Last edited by mqt; 12th May 2015 at 12:10.

Similar Threads

  1. qwt 5.2 install on qt 4.5
    By HyperB in forum Qwt
    Replies: 4
    Last Post: 13th May 2009, 20:03
  2. Qwt Legend Parent
    By BlackFoXX in forum Qwt
    Replies: 1
    Last Post: 21st April 2009, 07:10
  3. legend inside qwt plot
    By kaustav98255 in forum Qwt
    Replies: 5
    Last Post: 11th February 2009, 20:39
  4. Qwt Legend
    By maxpayne in forum Qwt
    Replies: 4
    Last Post: 15th October 2008, 17:17

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.