QWidget::palette : QPalette
This property holds the widget's palette.
As long as no special palette has been set, this is either a special palette for the widget class, the parent's palette or (if this widget is a top level widget), the default application palette.
Note: The palette's background color will only have an effect on the appearance of the widget if the autoFillBackground property is set.
Warning: Do not use this function in conjunction with Qt Style Sheets. When using style sheets, the palette of a widget can be customized using the "color", "background-color", "selection-color", "selection-background-color" and "alternate-background-color".
QPalette QApplication::palette () [static]
Returns the application palette.
QPalette QApplication::palette ( const QWidget * widget ) [static]
This is an overloaded member function, provided for convenience.
If a widget is passed, the default palette for the widget's class is returned. This may or may not be the application palette. In most cases there isn't a special palette for certain types of widgets, but one notable exception is the popup menu under Windows, if the user has defined a special background color for menus in the display settings.
QPalette QApplication::palette ( const char * className ) [static]
This is an overloaded member function, provided for convenience.
Returns the palette for widgets of the given className.
угадай откуда я это взял?