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!
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
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.