pub fn parent_widget(&self) -> Option<Widget> {
        let (obj_data, funcs) = self.get_layout_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).parent_widget)(obj_data);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Widget::new_from_rc(t);
            } else {
                ret_val = Widget::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
///
/// Returns the parent widget of this layout, or 0 if this layout is
/// not installed on any widget.
///
/// If the layout is a sub-layout, this function returns the parent
/// widget of the parent layout.
///
/// **See also:** [`parent()`]
Returns the parent widget of this layout, or 0 if this layout is
not installed on any widget.

If the layout is a sub-layout, this function returns the parent
widget of the parent layout.


Returns the parent widget of this layout or 0 if this layout is not installed on any widget . If the layout is a sub - layout this function returns the parent widget of the parent layout .
pub fn parent_widget(&self) -> Option<Widget> {
        let (obj_data, funcs) = self.get_layout_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).parent_widget)(obj_data);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Widget::new_from_rc(t);
            } else {
                ret_val = Widget::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn parent_widget ( & self ) -> Option < Widget > { let ( obj_data , funcs ) = self . get_layout_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . parent_widget ) ( obj_data ) ; if ret_val . qt_data == :: std :: ptr :: null ( ) { return None ; } let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Widget :: new_from_rc ( t ) ; } else { ret_val = Widget :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Returns the parent widget of this layout, or 0 if this layout is
not installed on any widget.
Returns the parent widget of this layout or 0 if this layout is not installed on any widget .
&self
&self