Struct qt_core::QMetaClassInfo
source · #[repr(C)]pub struct QMetaClassInfo { /* private fields */ }
Expand description
The QMetaClassInfo class provides additional information about a class.
C++ class: QMetaClassInfo
.
The QMetaClassInfo class provides additional information about a class.
Class information items are simple name--value pairs that are specified using Q_CLASSINFO() in the source code. The information can be retrieved using name() and value(). For example:
class MyClass { Q_OBJECT Q_CLASSINFO(“author”, “Sabrina Schweinsteiger”) Q_CLASSINFO(“url”, “http://doc.moosesoft.co.uk/1.0/”)
public: ... };
This mechanism is free for you to use in your Qt applications. Qt doesn't use it for any of its classes.
Implementations§
source§impl QMetaClassInfo
impl QMetaClassInfo
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QMetaClassInfo>>
) -> Ref<QMetaClassInfo>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QMetaClassInfo>> ) -> Ref<QMetaClassInfo>
The QMetaClassInfo class provides additional information about a class.
Calls C++ function: QMetaClassInfo& QMetaClassInfo::operator=(const QMetaClassInfo& other)
.
The QMetaClassInfo class provides additional information about a class.
Class information items are simple name--value pairs that are specified using Q_CLASSINFO() in the source code. The information can be retrieved using name() and value(). For example:
class MyClass { Q_OBJECT Q_CLASSINFO(“author”, “Sabrina Schweinsteiger”) Q_CLASSINFO(“url”, “http://doc.moosesoft.co.uk/1.0/”)
public: ... };
This mechanism is free for you to use in your Qt applications. Qt doesn't use it for any of its classes.
sourcepub unsafe fn enclosing_meta_object(&self) -> Ptr<QMetaObject>
pub unsafe fn enclosing_meta_object(&self) -> Ptr<QMetaObject>
Calls C++ function: const QMetaObject* QMetaClassInfo::enclosingMetaObject() const
.
sourcepub unsafe fn name(&self) -> *const c_char
pub unsafe fn name(&self) -> *const c_char
Returns the name of this item.
Calls C++ function: const char* QMetaClassInfo::name() const
.
Returns the name of this item.
See also value().
sourcepub unsafe fn new() -> CppBox<QMetaClassInfo>
pub unsafe fn new() -> CppBox<QMetaClassInfo>
Calls C++ function: [constructor] void QMetaClassInfo::QMetaClassInfo()
.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QMetaClassInfo>>
) -> CppBox<QMetaClassInfo>
pub unsafe fn new_copy( other: impl CastInto<Ref<QMetaClassInfo>> ) -> CppBox<QMetaClassInfo>
The QMetaClassInfo class provides additional information about a class.
Calls C++ function: [constructor] void QMetaClassInfo::QMetaClassInfo(const QMetaClassInfo& other)
.
The QMetaClassInfo class provides additional information about a class.
Class information items are simple name--value pairs that are specified using Q_CLASSINFO() in the source code. The information can be retrieved using name() and value(). For example:
class MyClass { Q_OBJECT Q_CLASSINFO(“author”, “Sabrina Schweinsteiger”) Q_CLASSINFO(“url”, “http://doc.moosesoft.co.uk/1.0/”)
public: ... };
This mechanism is free for you to use in your Qt applications. Qt doesn't use it for any of its classes.
Trait Implementations§
source§impl CppDeletable for QMetaClassInfo
impl CppDeletable for QMetaClassInfo
source§unsafe fn delete(&self)
unsafe fn delete(&self)
The QMetaClassInfo class provides additional information about a class.
Calls C++ function: [destructor] void QMetaClassInfo::~QMetaClassInfo()
.
The QMetaClassInfo class provides additional information about a class.
Class information items are simple name--value pairs that are specified using Q_CLASSINFO() in the source code. The information can be retrieved using name() and value(). For example:
class MyClass { Q_OBJECT Q_CLASSINFO(“author”, “Sabrina Schweinsteiger”) Q_CLASSINFO(“url”, “http://doc.moosesoft.co.uk/1.0/”)
public: ... };
This mechanism is free for you to use in your Qt applications. Qt doesn't use it for any of its classes.