QtGlobalColor
QtGlobalColor, formally exposed as Qt::GlobalColor, is a legacy enumeration in the Qt framework used to reference a small set of predefined, global colors. It is part of the public API in the QtGui module and provides a convenient way to specify colors without composing explicit RGB values. Programs can convert these constants to color values when creating QColors or when setting colors in palettes.
The enumeration includes a collection of common colors such as white, black, red, green, blue, cyan, magenta,
Usage examples are straightforward: you can create a QColor from a global color, or pass a global
In modern Qt development, explicit RGB values, hex literals, or stylesheet-based styling are more commonly used.