Results 1 to 2 of 2

Thread: How to set symbol to QwtLegendLabel

  1. #1
    Join Date
    Aug 2017
    Posts
    9
    Thanks
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default How to set symbol to QwtLegendLabel

    Hi Uwe,

    I migrated my project from Qwt 5.0 to Qwt 6.0. I found that QwtLegendItem was replaced by QwtLegendLabel in Qwt 6.0.

    But there is no setSymbol() in QwtLegendLabel. How can I set symbol for QwtLegendLabel?

    My original code is like below:
    Qt Code:
    1. QwtLegendItem *item = new QwtLegendItem(this);
    2. item->setSymbol(...);
    To copy to clipboard, switch view to plain text mode 

    And how to set curvePen() for QwtLegendLabel?

    Thanks a lot!!

  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: How to set symbol to QwtLegendLabel

    All APIs for manipulating the content of the legend items have been moved to the corresponding plot items.

    Uwe

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

    lin3398032 (20th April 2018)

Similar Threads

  1. Replies: 5
    Last Post: 22nd October 2015, 07:07
  2. Replies: 1
    Last Post: 16th April 2015, 08:00
  3. More information about QwtLegendLabel
    By Sangfeust in forum Qwt
    Replies: 2
    Last Post: 9th February 2015, 10:46
  4. Replies: 3
    Last Post: 27th May 2014, 18:55
  5. Replies: 1
    Last Post: 22nd June 2010, 20:56

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.