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!
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!
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
AnnaP (7th February 2011)
Bookmarks