Hello Everyone!,
i have to draw some curves in one plot. (~100) and i want to do have different random colors for each curve.

e.g. i found
Random random = new Random();
QColor color = new QColor(random.nextInt(256), random.nextInt(256), random.nextInt(256));


http://qt.nokia.com/doc/qtjambi-4.5....work-code.html
http://java.sun.com/javase/6/docs/ap...il/Random.html

But this java is only working in QT Jambi and wount work in my project??


Or Is there a better way to do this as shown below:

for(int i =0; i<size; i++)
{
// Generate some Data....
...
//Plot All Data...

QwtPlotCurve *Curve = new QwtPlotCurve();
// Set different colors...
QColor color;
color.setRgb(i,i,i,i);
}
thanks in Advance,
Astronomy