The QPalette class contains color groups for each widget state.
The QPalette class contains color groups for each widget state.
A palette consists of three color groups: Active, Disabled, and Inactive. All widgets in Qt contain a palette and use their palette to draw themselves. This makes the user interface easily configurable and easier to keep consistent.
The color groups:
- The Active group is used for the window that has keyboard focus.
- The Inactive group is used for other windows
- The Disabled group is used for widgets (not windows) that are disabled for some reason.