pub fn install_event_filter<O: ObjectTrait<'a>>(&self, filter_obj: &O) -> &Self {
        let (obj_filter_obj_1, _funcs) = filter_obj.get_object_obj_funcs();

        let (obj_data, funcs) = self.get_object_obj_funcs();
        unsafe {
            ((*funcs).install_event_filter)(obj_data, obj_filter_obj_1);
        }
        self
    }
///
/// Installs an event filter *filterObj* on this object. For example:
///
/// An event filter is an object that receives all events that are
/// sent to this object. The filter can either stop the event or
/// forward it to this object. The event filter *filterObj* receives
/// events via its eventFilter() function. The eventFilter() function
/// must return true if the event should be filtered, (i.e. stopped);
/// otherwise it must return false.
///
/// If multiple event filters are installed on a single object, the
/// filter that was installed last is activated first.
///
/// Here's a `KeyPressEater` class that eats the key presses of its
/// monitored objects:
///
/// And here's how to install it on two widgets:
///
/// The QShortcut class, for example, uses this technique to intercept
/// shortcut key presses.
///
/// **Warning**: If you delete the receiver object in your eventFilter()
/// function, be sure to return true. If you return false, Qt sends
/// the event to the deleted object and the program will crash.
///
/// Note that the filtering object must be in the same thread as this
/// object. If *filterObj* is in a different thread, this function does
/// nothing. If either *filterObj* or this object are moved to a different
/// thread after calling this function, the event filter will not be
/// called until both objects have the same thread affinity again (it
/// is *not* removed).
///
/// **See also:** [`remove_event_filter()`]
/// [`event_filter()`]
/// [`event()`]
Installs an event filter *filterObj* on this object. For example:
An event filter is an object that receives all events that are
sent to this object. The filter can either stop the event or
forward it to this object. The event filter *filterObj* receives
events via its eventFilter() function. The eventFilter() function
must return true if the event should be filtered, ;
otherwise it must return false.

If multiple event filters are installed on a single object, the
filter that was installed last is activated first.

Here's a `KeyPressEater` class that eats the key presses of its
monitored objects.

And here's how to install it on two widgets.

The QShortcut class, for example, uses this technique to intercept
shortcut key presses.

Warning**: If you delete the receiver object in your eventFilter()
function, be sure to return true. If you return false, Qt sends
the event to the deleted object and the program will crash.

Note that the filtering object must be in the same thread as this
object. If *filterObj* is in a different thread, this function does
nothing. If either *filterObj* or this object are moved to a different
thread after calling this function, the event filter will not be
called until both objects have the same thread affinity again (it
is *not* removed).


Installs an event filter * filterObj * on this object . For example : An event filter is an object that receives all events that are sent to this object . The filter can either stop the event or forward it to this object . The event filter * filterObj * receives events via its eventFilter () function . The eventFilter () function must return true if the event should be filtered ; otherwise it must return false . If multiple event filters are installed on a single object the filter that was installed last is activated first . Here ' s a ` KeyPressEater ` class that eats the key presses of its monitored objects . And here ' s how to install it on two widgets . The QShortcut class for example uses this technique to intercept shortcut key presses . Warning ** : If you delete the receiver object in your eventFilter () function be sure to return true . If you return false Qt sends the event to the deleted object and the program will crash . Note that the filtering object must be in the same thread as this object . If * filterObj * is in a different thread this function does nothing . If either * filterObj * or this object are moved to a different thread after calling this function the event filter will not be called until both objects have the same thread affinity again ( it is * not * removed ) .
pub fn install_event_filter<O: ObjectTrait<'a>>(&self, filter_obj: &O) -> &Self {
        let (obj_filter_obj_1, _funcs) = filter_obj.get_object_obj_funcs();
        let (obj_data, funcs) = self.get_object_obj_funcs();
        unsafe {
            ((*funcs).install_event_filter)(obj_data, obj_filter_obj_1);
        }
        self
    }
pub fn install_event_filter < O : ObjectTrait < ' a > > ( & self , filter_obj : & O ) -> & Self { let ( obj_filter_obj_1 , _funcs ) = filter_obj . get_object_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_object_obj_funcs ( ) ; unsafe { ( ( * funcs ) . install_event_filter ) ( obj_data , obj_filter_obj_1 ) ; } self }
Installs an event filter *filterObj* on this object.
Installs an event filter * filterObj * on this object .
&self
filter_obj
&O
&self
filter_obj
&O