QMetaClassInfo Class
The QMetaClassInfo class provides additional information about a class. More…
| Header | #include <QMetaClassInfo> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Core) |
| Module | Nt Core C++ Classes |
List of all members, including inherited members
Public Functions
| QMetaClassInfo() | |
| const char * | name() const |
| const char * | value() const |
| const QMetaObject * | enclosingMetaObject() const |
| bool | isValid() const |
Detailed Description
Class information is a name and value pair that a class declares with Q_CLASSINFO():
class Document : public QObject {
Q_OBJECT
Q_CLASSINFO("Author", "A. Writer")
};
See also QMetaObject::classInfo().
Differences from Qt
None.
Member Function Documentation
QMetaClassInfo::QMetaClassInfo()
Constructs an invalid object.
See also isValid().
const QMetaObject * QMetaClassInfo::enclosingMetaObject() const
Returns the meta-object of the class that declares the entry.
bool QMetaClassInfo::isValid() const
Returns true if this object describes class information; otherwise returns false.
const char * QMetaClassInfo::name() const
Returns the name of the entry.
See also value().
const char * QMetaClassInfo::value() const
Returns the value of the entry.
See also name().