Results 1 to 2 of 2

Thread: How to implement external legend in QWT 6.0?

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

    Default How to implement external legend in QWT 6.0?

    Hi,

    I found that QwtPlot removed the external legend option in Qwt 6.0.

    How to implement the external legend in Qwt 6.0?

    Thanks,
    William

  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 implement external legend in QWT 6.0?

    Simply by not calling QwtPlot::inserLegend. Instead you have to connect the legendDataChanged signal from the plot with the updateLegend slot of the legend manually
    Have a look at legends example - the corresponding code for the external legend can be found in Plot::applySettings.

    Uwe

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

    lin3398032 (26th April 2018)

Similar Threads

  1. Add label to legend
    By countersubject in forum Qwt
    Replies: 2
    Last Post: 18th June 2014, 09:26
  2. Replies: 1
    Last Post: 17th April 2014, 07:11
  3. QWT legend customization
    By alexmal in forum Qwt
    Replies: 1
    Last Post: 20th May 2011, 08:27
  4. Legend manipulation
    By pkj in forum Qwt
    Replies: 1
    Last Post: 17th March 2011, 08:11
  5. Qwt Legend
    By maxpayne in forum Qwt
    Replies: 4
    Last Post: 15th October 2008, 18: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.