Hello,

I have graph which has multiple curves.
For this curve I have sets some colors, where I dont know how many curve can be into the graph, so I'm setting different color up to 8 curves and on 9th onwards I set fixed blue color to rest of all curves,

I want to set different color for all the curves, like in the for loop I can change the value of RGB and will get different color, but I don't understand what pattern of loop I should use to get appropriate color, which should be at list visible.

I can use below logic but the problem is that every time I get different color for the same curve, that I want fixed whenever I start or reload the application, so the below logic will not worked for my application.
Qt Code:
  1. setCurveColor(QColor( qrand() % 256, qrand() % 256, qrand() % 256 ) );
To copy to clipboard, switch view to plain text mode 

Please let me know if any pattern or logic that I can implement for this, so that I can different color and which cannot change if I start or reload application again.

Thanks