Should be possible to draw a curve using dashed lines with different alternate colors?
I want to draw a curve using red,white,yellow and repeating the pattern.

I'm looking to QwtPlotCurve::setPen but seems it is a topic related to QT properly.
Is there a way to derive QwtPlotCurve and reimplement draw methods?