Fonts and icons have improved the look of our form, but now it's time to ditch those institutional gray tones and replace them with some color. In this section, we're going to look at three different approaches that Qt offers for customizing application colors: manipulating the palette, using style sheets, and overriding the application style.
Configuring colors, style sheets, and styles
Customizing colors with palettes
A palette, represented by the QPalette class, is a collection of colors and brushes that are mapped to color roles and color groups.
Let's unpack that statement:
- Here, color is a literal color value, represented by a QColor object
- A brush combines a particular color with a style, such as a pattern...