You can use the QColor constructor, which accepts red, green, and blue parameters to create new colors like:
QColor colours[10] = {QColor(255,0,0), QColor(0,255,0), QColor(0,0,255), QColor(0,0,0), QColor(255,255,255), QColor(0,128,64)};
You can use as many combinations of r, g, b as possible to come up with new colors. You can find the red, green, and blue options for different colors by looking at the Pantone color chart and create a nice set of colors for your application.
source share