PDA

View Full Version : Control Default QwtPlotCurve, zoomer rubber band and text colors with StyleSheets?



mawillia
17th June 2014, 17:39
Hi,

Is there anyway using Qt Stylesheets to configure the default QwtPlotCurve pen color? I am also trying to configure the rubber band color as well.

I see there are some .css examples for the backgrounds and the axis label text colors, but nothing for curves or symbols. Is this not possible / supported with Stylesheets?

Thanks.

-Mike

Uwe
18th June 2014, 08:23
Style sheets are for widgets only and it is made for Qt widgets only: no concept how to extend it for 3rd party widgets.

So for plot items all you can do is to using the generic concept of properties or changing colors of the canvas palette and using them for initializing the plot items.
The rubber band is a widget and can be configured using its object name "PickerRubberBand". But be careful as using style sheets has some side effects.

Uwe