PDA

View Full Version : Seperate QBrush for samples in QwtPlotIntervalCurve



masm_11
3rd March 2014, 19:16
Sorry if this is a silly question, but how do I go about applying different colors to the QwtIntervalSamples in QwtPlotIntervalCurve? I tried creating a QwtIntervalSymbol and applying a QBrush and QPen, but the color was applied to all of the intervals in QwtPlotIntervalCurve.

Thanks!

Uwe
3rd March 2014, 22:00
You can't, the interval between the 2 curves is always filled with the same brush. If you want to draw different symbols you could try to overload QwtPlotIntervalCurve::drawSymbols().

Uwe