pub trait PropertyType {
    // Required methods
    fn register_type(name: &CStr) -> i32;
    unsafe fn pass_to_qt(&mut self, a: *mut c_void);
    unsafe fn read_from_qt(a: *const c_void) -> Self;
}
Expand description

Internal trait used to pass or read the type in a Q_PROPERTY

Don’t implement this trait, implement the QMetaType trait.

Required Methods§

source

fn register_type(name: &CStr) -> i32

source

unsafe fn pass_to_qt(&mut self, a: *mut c_void)

source

unsafe fn read_from_qt(a: *const c_void) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> PropertyType for RefCell<T>
where T: QObject,

source§

fn register_type(_name: &CStr) -> i32

source§

unsafe fn pass_to_qt(&mut self, a: *mut c_void)

source§

unsafe fn read_from_qt(_a: *const c_void) -> Self

Implementors§

source§

impl<T> PropertyType for QPointer<T>
where T: QObject,

source§

impl<T> PropertyType for T
where T: QMetaType,