Results 1 to 3 of 3

Thread: Add label to legend

  1. #1

    Default Re: Add label to legend

    Hi,
    how can I add a label to a legend?

    Context: I am tryng to group curves that belong together, and I want to add a label to the legend, then have all the curves listed after that, and then maybe a newline and the next group below. Ex:

    Group1: -curve1 -curve2 -curve3
    Group2: -curve4 -curve5

    etc.
    Is this possible? I tried adding dummy curves to get an entry in the legend but they do not appear in the correct order (I added them first, but they appear last).

    I'd be very grateful for some hints/advice

    PS: using qwt 6.0.1
    Last edited by countersubject; 17th June 2014 at 09:58.

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

    Default Re: Add label to legend

    One major difference between Qwt 6.1 and 6.0 is the API for the legend, that allows to implement custom legends.
    For example have a look at the stockchart example that uses a QTreeView as legend ( there grouping according to the plot item type ).

    Uwe

  3. #3

    Default Re: Add label to legend

    I know but I can't switch now.
    Is there still a way....maybe?

Similar Threads

  1. Replies: 5
    Last Post: 26th June 2015, 15:00
  2. White Legend
    By SandyEmerald in forum Qwt
    Replies: 1
    Last Post: 30th July 2013, 06:31
  3. QWT legend customization
    By alexmal in forum Qwt
    Replies: 1
    Last Post: 20th May 2011, 07:27
  4. Qwt Legend Parent
    By BlackFoXX in forum Qwt
    Replies: 1
    Last Post: 21st April 2009, 07:10
  5. 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.