Is there a way to convert (Qt) qcolor to Quantity_NameOfColor ? does anyone know a way?
Thanks,
Venu
Tilman Leune Fri, 02/05/2010 - 10:22
You could create a Quantity_Color-Object using the RGB or HSV Values of your QColor, then use the .Name()-Method of the resulting Object.
Name() actually returns the NameOfColor which is closest to the Quantity_Color specified.
Fri, 02/05/2010 - 10:22
You could create a Quantity_Color-Object using the RGB or HSV Values of your QColor, then use the .Name()-Method of the resulting Object.
Name() actually returns the NameOfColor which is closest to the Quantity_Color specified.
Sat, 02/06/2010 - 18:31
Thanks Tilman, will try that.