///
/// The policy is Qt::TabFocus if the widget accepts keyboard
/// focus by tabbing, Qt::ClickFocus if the widget accepts
/// focus by clicking, Qt::StrongFocus if it accepts both, and
/// Qt::NoFocus (the default) if it does not accept focus at
/// all.
///
/// You must enable keyboard focus for a widget if it processes
/// keyboard events. This is normally done from the widget's
/// constructor. For instance, the QLineEdit constructor calls
/// setFocusPolicy(Qt::StrongFocus).
///
/// If the widget has a focus proxy, then the focus policy will
/// be propagated to it.
///
/// **See also:** [`focus_in_event()`]
/// [`focus_out_event()`]
/// [`key_press_event()`]
/// [`key_release_event()`]
/// enabled


You must enable keyboard focus for a widget if it processes
keyboard events. This is normally done from the widget's
constructor.

If the widget has a focus proxy, then the focus policy will
be propagated to it.


You must enable keyboard focus for a widget if it processes keyboard events . This is normally done from the widget ' s constructor . If the widget has a focus proxy then the focus policy will be propagated to it .
pub fn focus_policy(&self) -> FocusPolicy {
        let (obj_data, funcs) = self.get_widget_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).focus_policy)(obj_data);
            let ret_val = { transmute::<u32, FocusPolicy>(ret_val) };
            ret_val
        }
    }
pub fn focus_policy ( & self ) -> FocusPolicy { let ( obj_data , funcs ) = self . get_widget_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . focus_policy ) ( obj_data ) ; let ret_val = { transmute :: < u32 , FocusPolicy > ( ret_val ) } ; ret_val } }
The policy is Qt::TabFocus if the widget accepts keyboard
focus by tabbing, Qt::ClickFocus if the widget accepts
focus by clicking, Qt::StrongFocus if it accepts both, and
Qt::NoFocus (the default) if it does not accept focus at
all.
The policy is Qt :: TabFocus if the widget accepts keyboard focus by tabbing Qt :: ClickFocus if the widget accepts focus by clicking Qt :: StrongFocus if it accepts both and Qt :: NoFocus ( the default ) if it does not accept focus at all .
&self