Results 1 to 3 of 3

Thread: Change icon color of legendItem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: Change icon color of legendItem

    The plot item is responsible for how it is represented on the legend - not the legend item. When the options of QwtPlotCurve::setLegendAttribute() doesn't offer what you need, you have to overload QwtPlotCurve::drawLegendIdentifier().

    Uwe

    PS: Note that the legend system is different for Qwt from SVN trunk

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

    missoni (18th October 2012)

Similar Threads

  1. How to preserve item's icon color ?
    By AlexSudnik in forum Qt Programming
    Replies: 2
    Last Post: 29th April 2011, 23:58
  2. Can't change toolbutton icon
    By waynew in forum Newbie
    Replies: 4
    Last Post: 8th December 2010, 09:37
  3. Replies: 3
    Last Post: 22nd January 2010, 17:46
  4. Change Application Icon
    By cutie.monkey in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2008, 08:14
  5. how to change backgroup color, button color and shape?
    By lzha022 in forum Qt Programming
    Replies: 10
    Last Post: 16th June 2008, 23:25

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
  •  
Qt is a trademark of The Qt Company.