Hi everybody!

I'd like to plot a custom QLineSeries in a QtChart. I need to split a QLineSeries in multiple sections, each one with a different color. I have tried to change the QPen, the QBrush and the QColor of the series, but it affects all the plotted data, and that's not what i want.

What I am looking for is to call a QLineSeries method which changes the color of the plotted data, but maintaining old data with the color it was painted. Is it posible to do it?

Thank you in advance!

Cristian