Results 1 to 2 of 2

Thread: QwtLegend background in a Tab Widget

  1. #1
    Join Date
    Dec 2010
    Posts
    10
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QwtLegend background in a Tab Widget

    Hello all,

    I use a QTabWidget tab to show a plot with a QwtLegend.
    All plot components (e.g. a plot title) are drawn respectively the tab background however the legend is draw with initial background.

    How can I manage it?
    Thanks!

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

    Default Re: QwtLegend background in a Tab Widget

    Internally the legend has a QScrollArea where setAutoFillBackground() is set.

    I changed this, when playing with style sheets - so this time using Qwt from SVN trunk might help.

    If you don't want to do this you can retrieve the children of the legend ( legend()->findChildren() ) and do a child->setAutoFillBackground( false ) where necessary.

    Uwe

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

    AnnaP (7th February 2011)

Similar Threads

  1. How to set a widget as background?
    By Patrick Sorcery in forum Qt Programming
    Replies: 7
    Last Post: 25th October 2010, 11:41
  2. QwtLegend size
    By baray98 in forum Qwt
    Replies: 3
    Last Post: 11th May 2010, 09:55
  3. QwtLegend size
    By baray98 in forum Qwt
    Replies: 0
    Last Post: 10th May 2010, 05:26
  4. Adding tooltip for each QwtLegendİtem
    By umituzun84 in forum Qwt
    Replies: 1
    Last Post: 25th March 2010, 07:24
  5. Set Title for QWTLegend...
    By umulingu in forum Qwt
    Replies: 3
    Last Post: 23rd March 2010, 09:28

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.