Hello world,

i have K curve on a plot and i want to change the color for each curves but i don't know how i can made this

Me code it's here:

Qt Code:
  1. for ( int k = 0 ; k < NbOfCurve ; ++k )
  2. {
  3. mycurve[0+k*nombreDoublePlot]->attach( myPlot1 );
  4. mycurve[0+k*nombreDoublePlot]->setStyle( QwtPlotCurve::Dots );
  5. mycurve[0+k*nombreDoublePlot]->setPen( QPen( Qt::blue, 2) );
  6. }
To copy to clipboard, switch view to plain text mode 

This code plots all the curve in blue, however i want differents color for each iteration

can you help me please