QColor color; color.setHsvF(0.5, 0.8, 0.6);
QColor color; color.setHsvF(0.0, 1.0, 1.0);This will set the color to a hue of 0.0 (which is red in the HSV color space), a saturation of 1.0 (which means fully saturated), and a value of 1.0 (which means fully bright). Package Library: QColor::setHsvF is part of the Qt library.