///
/// Returns the code of the key that was pressed or released.
///
/// See [Qt::Key](Qt::Key)
/// for the list of keyboard codes. These codes are
/// independent of the underlying window system. Note that this
/// function does not distinguish between capital and non-capital
/// letters, use the text() function (returning the Unicode text the
/// key generated) for this purpose.
///
/// A value of either 0 or Qt::Key_unknown means that the event is not
/// the result of a known key; for example, it may be the result of
/// a compose sequence, a keyboard macro, or due to key event
/// compression.
///
/// **See also:** [`t::wa_key_compression()`]
Returns the code of the key that was pressed or released.
See [Qt::Key](Qt::Key)
for the list of keyboard codes. These codes are
independent of the underlying window system. Note that this
function does not distinguish between capital and non-capital
letters, use the text() function (returning the Unicode text the
key generated) for this purpose.

A value of either 0 or Qt::Key_unknown means that the event is not
the result of a known key; for example, it may be the result of
a compose sequence, a keyboard macro, or due to key event
compression.


Returns the code of the key that was pressed or released . See [ Qt :: Key ] ( Qt :: Key ) for the list of keyboard codes . These codes are independent of the underlying window system . Note that this function does not distinguish between capital and non - capital letters use the text () function ( returning the Unicode text the key generated ) for this purpose . A value of either 0 or Qt :: Key_unknown means that the event is not the result of a known key ; for example it may be the result of a compose sequence a keyboard macro or due to key event compression .
pub fn key(&self) -> i32 {
        let (obj_data, funcs) = self.get_key_event_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).key)(obj_data);
            ret_val
        }
    }
pub fn key ( & self ) -> i32 { let ( obj_data , funcs ) = self . get_key_event_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . key ) ( obj_data ) ; ret_val } }
Returns the code of the key that was pressed or released.
Returns the code of the key that was pressed or released .
&self