|  | Qt 6.x
    The Qt SDK | 
\inmodule QtCore More...
#include <qmetaobject.h>
 Collaboration diagram for QMetaClassInfo:
 Collaboration diagram for QMetaClassInfo:| Public Member Functions | |
| constexpr | QMetaClassInfo () | 
| const char * | name () const | 
| Returns the name of this item. | |
| const char * | value () const | 
| Returns the value of this item. | |
| const QMetaObject * | enclosingMetaObject () const | 
| Friends | |
| struct | QMetaObject | 
\inmodule QtCore
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:
This mechanism is free for you to use in your Qt applications. Qt doesn't use it for any of its classes.
Definition at line 411 of file qmetaobject.h.
| 
 | inlineconstexpr | 
Definition at line 414 of file qmetaobject.h.
| 
 | inline | 
Definition at line 417 of file qmetaobject.h.
| const char * QMetaClassInfo::name | ( | ) | const | 
Returns the name of this item.
Definition at line 4082 of file qmetaobject.cpp.
References rawStringData().
Referenced by QMetaObjectBuilder::addMetaObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| const char * QMetaClassInfo::value | ( | ) | const | 
Returns the value of this item.
Definition at line 4094 of file qmetaobject.cpp.
References rawStringData().
Referenced by QDBusAdaptorConnector::addAdaptor(), and QMetaObjectBuilder::addMetaObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | friend | 
Definition at line 431 of file qmetaobject.h.