QMetaObject(3qt)
π QMetaObject π
okay bestie, welcome to the QMetaObject(3qt) page, section 3qt of the Qt manual β yes it's a real man page and yes it's lowkey iconic, let's get into it π«Ά
β¨ NAME β¨
QMetaObject β meta information about Qt objects. that's it, that's the whole vibe, it's the class that knows stuff about your classes π
πΈ SYNOPSIS πΈ
#include <qmetaobject.h>
π Public Members π
const char * className () const
const char * superClassName () const
QMetaObject * superClass () const
bool inherits ( const char * clname ) const
int numSlots ( bool super = FALSE ) const
int numSignals ( bool super = FALSE ) const
QStrList slotNames ( bool super = FALSE ) const
QStrList signalNames ( bool super = FALSE ) const
int numClassInfo ( bool super = FALSE ) const
const QClassInfo * classInfo ( int index, bool super = FALSE ) const
const char * classInfo ( const char * name, bool super = FALSE ) const
const QMetaProperty * property ( int index, bool super = FALSE ) const
int findProperty ( const char * name, bool super = FALSE ) const
QStrList propertyNames ( bool super = FALSE ) const
int numProperties ( bool super = FALSE ) const
π¦ DESCRIPTION π¦
The QMetaObject class contains meta information about Qt objects. it's giving "class that knows about other classes" energy fr fr π
The Meta Object System in Qt is responsible for the signals and slots inter-object communication mechanism, runtime type information and the property system. All meta information in Qt is kept in a single instance of QMetaObject per class. one object per class, no cap β¨
ngl this class is not normally required for application programming. But if you write meta applications, such as scripting engines or GUI builders, you might find these functions useful β and if that's you, bestie, this page is your moment π:
className()to get the name of a class.superClassName()to get the name of the superclass.inherits(), the function called byQObject::inherits().superClass()to access the superclass's meta object.numSlots(),numSignals(),slotNames(), andsignalNames()to get information about a class's signals and slots.property()andpropertyNames()to obtain information about a class's properties.
Classes may have a list of name-value pairs of class information. The number of pairs is returned by numClassInfo(), and values are returned by classInfo(). π
See also moc (Meta Object Compiler) and Object Model.
π MEMBER FUNCTION DOCUMENTATION π
π const QClassInfo * QMetaObject::classInfo ( int index, bool super = FALSE ) const
Returns the class information with index index or 0 if no such information exists.
If super is TRUE, inherited class information is included.
π const char * QMetaObject::classInfo ( const char * name, bool super = FALSE ) const
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the class information with name name or 0 if no such information exists.
If super is TRUE, inherited class information is included.
π const char * QMetaObject::className () const
Returns the class name.
See also QObject::className() and superClassName().
π int QMetaObject::findProperty ( const char * name, bool super = FALSE ) const
Returns the index for the property with name name or -1 if no such property exists. yes, -1, not zero, don't come for me π
If super is TRUE, inherited properties are included.
See also property() and propertyNames().
π bool QMetaObject::inherits ( const char * clname ) const
Returns TRUE if this class inherits clname within the meta object inheritance chain; otherwise returns FALSE.
(A class is considered to inherit itself.) yes, main character energy, she inherits herself π
π int QMetaObject::numClassInfo ( bool super = FALSE ) const
Returns the number of items of class information available for this class.
If super is TRUE, inherited class information is included.
π int QMetaObject::numProperties ( bool super = FALSE ) const
Returns the number of properties for this class.
If super is TRUE, inherited properties are included.
See also propertyNames().
π int QMetaObject::numSignals ( bool super = FALSE ) const
Returns the number of signals for this class.
If super is TRUE, inherited signals are included.
See also signalNames().
π int QMetaObject::numSlots ( bool super = FALSE ) const
Returns the number of slots for this class.
If super is TRUE, inherited slots are included.
See also slotNames().
π const QMetaProperty * QMetaObject::property ( int index, bool super = FALSE ) const
Returns the property meta data for the property at index index or 0 if no such property exists.
If super is TRUE, inherited properties are included.
See also propertyNames().
π QStrList QMetaObject::propertyNames ( bool super = FALSE ) const
Returns a list with the names of all this class's properties.
If super is TRUE, inherited properties are included.
See also property().
π QStrList QMetaObject::signalNames ( bool super = FALSE ) const
Returns a list with the names of all this class's signals.
If super is TRUE, inherited signals are included.
π QStrList QMetaObject::slotNames ( bool super = FALSE ) const
Returns a list with the names of all this class's slots.
If super is TRUE, inherited slots are included.
See also numSlots().
π QMetaObject * QMetaObject::superClass () const
Returns the meta object of the super class or 0 if there is no such object.
π const char * QMetaObject::superClassName () const
Returns the class name of the superclass or 0 if there is no superclass in the QObject hierachy. (spelled exactly like that in the source, bestie, we do not fix, we preserve β¨)
See also className().
π SEE ALSO π
β COPYRIGHT β
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.
π§ AUTHOR π§
Generated automatically from the source code. (so no, there's no tortured novelist behind this, it's a machine and honestly? it ate π)
π BUGS π
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. π«Ά
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.
If you find errors in this manual page, please report them toqt-bugs@trolltech.com. Please include the name of the manual page (qmetaobject.3qt) and the Qt version (3.3.8). fr fr, they need both, don't skimp π
and that's the page, bestie!! π sign-off time: this little gem came from Trolltech AS, dated 2 February 2007, and it lives in the man page QMetaObject(3qt). iconic, historic, meta. periodt πβ¨π¦
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms