pub fn polish<W: WidgetTrait<'a>>(&self, widget: &W) -> &Self {
        let (obj_widget_1, _funcs) = widget.get_widget_obj_funcs();

        let (obj_data, funcs) = self.get_style_obj_funcs();
        unsafe {
            ((*funcs).polish)(obj_data, obj_widget_1);
        }
        self
    }
///
/// Initializes the appearance of the given *widget.*
///
/// This function is called for every widget at some point after it
/// has been fully created but just *before* it is shown for the very
/// first time.
///
/// Note that the default implementation does nothing. Reasonable
/// actions in this function might be to call the
/// QWidget::setBackgroundMode() function for the widget. Do not use
/// the function to set, for example, the geometry. Reimplementing
/// this function provides a back-door through which the appearance
/// of a widget can be changed, but with Qt's style engine it is
/// rarely necessary to implement this function; reimplement
/// drawItemPixmap(), drawItemText(), drawPrimitive(), etc. instead.
///
/// The QWidget::inherits() function may provide enough information to
/// allow class-specific customizations. But because new QStyle
/// subclasses are expected to work reasonably with all current and *future* widgets, limited use of hard-coded customization is
/// recommended.
///
/// **See also:** [`unpolish()`]
///
/// **Overloads**
/// Late initialization of the given *application* object.
///
/// **Overloads**
/// Changes the *palette* according to style specific requirements
/// for color palettes (if any).
///
/// **See also:** [`Palette`]
/// [`Application::set_palette`]
Initializes the appearance of the given *widget.
This function is called for every widget at some point after it
has been fully created but just *before* it is shown for the very
first time.

Note that the default implementation does nothing. Reasonable
actions in this function might be to call the
QWidget::setBackgroundMode() function for the widget. Do not use
the function to set, for example, the geometry. Reimplementing
this function provides a back-door through which the appearance
of a widget can be changed, but with Qt's style engine it is
rarely necessary to implement this function; reimplement
drawItemPixmap(), drawItemText(), drawPrimitive(), etc. instead.

The QWidget::inherits() function may provide enough information to
allow class-specific customizations. But because new QStyle
subclasses are expected to work reasonably with all current and *future* widgets, limited use of hard-coded customization is
recommended.



Overloads
Late initialization of the given *application* object.

Overloads
Changes the *palette* according to style specific requirements
for color palettes (if any).

See also:** [`Palette`]
[`Application::set_palette`]
Initializes the appearance of the given * widget . This function is called for every widget at some point after it has been fully created but just * before * it is shown for the very first time . Note that the default implementation does nothing . Reasonable actions in this function might be to call the QWidget :: setBackgroundMode () function for the widget . Do not use the function to set for example the geometry . Reimplementing this function provides a back - door through which the appearance of a widget can be changed but with Qt ' s style engine it is rarely necessary to implement this function ; reimplement drawItemPixmap () drawItemText () drawPrimitive () etc . instead . The QWidget :: inherits () function may provide enough information to allow class - specific customizations . But because new QStyle subclasses are expected to work reasonably with all current and * future * widgets limited use of hard - coded customization is recommended . Overloads Late initialization of the given * application * object . Overloads Changes the * palette * according to style specific requirements for color palettes ( if any ) . See also : ** [ ` Palette ` ] [ ` Application :: set_palette ` ]
pub fn polish<W: WidgetTrait<'a>>(&self, widget: &W) -> &Self {
        let (obj_widget_1, _funcs) = widget.get_widget_obj_funcs();
        let (obj_data, funcs) = self.get_style_obj_funcs();
        unsafe {
            ((*funcs).polish)(obj_data, obj_widget_1);
        }
        self
    }
pub fn polish < W : WidgetTrait < ' a > > ( & self , widget : & W ) -> & Self { let ( obj_widget_1 , _funcs ) = widget . get_widget_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_style_obj_funcs ( ) ; unsafe { ( ( * funcs ) . polish ) ( obj_data , obj_widget_1 ) ; } self }
Initializes the appearance of the given *widget.
Initializes the appearance of the given * widget .
&self
widget
&W
&self
widget
&W