PDA

View Full Version : QwtLegend background in a Tab Widget



AnnaP
7th February 2011, 12:09
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!

Uwe
7th February 2011, 12:21
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