Function qmetaobject::into_leaked_cpp_ptr[][src]

pub fn into_leaked_cpp_ptr<T: QObject>(obj: T) -> *mut c_void

Create the C++ object and return a C++ pointer to a QObject.

The ownership is given to CPP, the resulting QObject* ptr need to be used somewhere that takes ownership

Panics if the C++ object was already created.