Results 1 to 2 of 2

Thread: How to add QwtLegend for specific case?

  1. #1
    Join Date
    Feb 2021
    Posts
    3
    Thanks
    2

    Default How to add QwtLegend for specific case?

    Hi, i want to add qwtlegend for my curves but i want to group them. For example, i have 3 red , 2 green and 2 blue curves and i want to add just one legend for different color but qwt adds legends for each curves. I want to add like this:Adsız.jpg Do you have any idea?

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

    Default Re: How to add QwtLegend for specific case?

    Qt Code:
    1. curve->setItemAttribute( QwtPlotItem::Legend, false );
    To copy to clipboard, switch view to plain text mode 
    HTH,
    Uwe

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

    excalybur96 (5th March 2021)

Similar Threads

  1. How to add QwtLegend for specific case?
    By excalybur96 in forum Newbie
    Replies: 1
    Last Post: 23rd February 2021, 16:13
  2. How to use QwtLegend?
    By ashley1 in forum Qwt
    Replies: 4
    Last Post: 3rd November 2015, 14:24
  3. convert upper-case to lower-case
    By RENOLD in forum Qt Programming
    Replies: 2
    Last Post: 23rd February 2012, 07:30
  4. QKeyEvent - lower case vs upper case keys?
    By ArkKup in forum Qt Programming
    Replies: 3
    Last Post: 9th January 2012, 15:58
  5. Replies: 5
    Last Post: 14th February 2011, 14:06

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.