QColorfromRgb
QColorfromRgb refers to the static function used in the Qt framework to create a QColor from individual red, green, and blue components. Implemented as QColor::fromRgb, it provides a programmatic way to specify a color by its 8-bit channel values rather than by a named color or a prebuilt palette.
The function takes three integers, r, g, and b, each in the range 0 to 255, representing
QColor::fromRgb is commonly used when colors are computed at runtime, loaded from external data, or defined
In practice, developers use QColor::fromRgb to set colors for widgets, painters, palettes, and stylesheets without relying