<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- /tmp/qt-3.0-reggie-28534/qt-x11-free-3.0.2/src/kernel/qmetaobject.cpp:75 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>QMetaObject Class</title> <style type="text/css"><!-- h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; } a:link { color: #004faf; text-decoration: none } a:visited { color: #672967; text-decoration: none } body { background: #ffffff; color: black; } --></style> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr bgcolor="#E5E5E5"> <td valign=center> <a href="index.html"> <font color="#004faf">Home</font></a> | <a href="classes.html"> <font color="#004faf">All Classes</font></a> | <a href="mainclasses.html"> <font color="#004faf">Main Classes</font></a> | <a href="annotated.html"> <font color="#004faf">Annotated</font></a> | <a href="groups.html"> <font color="#004faf">Grouped Classes</font></a> | <a href="functions.html"> <font color="#004faf">Functions</font></a> </td> <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QMetaObject Class Reference</h1> <p>The QMetaObject class contains meta information about Qt objects. <a href="#details">More...</a> <p><tt>#include <<a href="qmetaobject-h.html">qmetaobject.h</a>></tt> <p><a href="qmetaobject-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> <li><div class=fn>const char * <a href="#className"><b>className</b></a> () const</div></li> <li><div class=fn>const char * <a href="#superClassName"><b>superClassName</b></a> () const</div></li> <li><div class=fn>QMetaObject * <a href="#superClass"><b>superClass</b></a> () const</div></li> <li><div class=fn>bool <a href="#inherits"><b>inherits</b></a> ( const char * clname ) const</div></li> <li><div class=fn>int <a href="#numSlots"><b>numSlots</b></a> ( bool super = FALSE ) const</div></li> <li><div class=fn>int <a href="#numSignals"><b>numSignals</b></a> ( bool super = FALSE ) const</div></li> <li><div class=fn>QStrList <a href="#slotNames"><b>slotNames</b></a> ( bool super = FALSE ) const</div></li> <li><div class=fn>QStrList <a href="#signalNames"><b>signalNames</b></a> ( bool super = FALSE ) const</div></li> <li><div class=fn>int <a href="#numClassInfo"><b>numClassInfo</b></a> ( bool super = FALSE ) const</div></li> <li><div class=fn>const QClassInfo * <a href="#classInfo"><b>classInfo</b></a> ( int index, bool super = FALSE ) const</div></li> <li><div class=fn>const char * <a href="#classInfo-2"><b>classInfo</b></a> ( const char * name, bool super = FALSE ) const</div></li> <li><div class=fn>const QMetaProperty * <a href="#property"><b>property</b></a> ( int index, bool super = FALSE ) const</div></li> <li><div class=fn>int <a href="#findProperty"><b>findProperty</b></a> ( const char * name, bool super = FALSE ) const</div></li> <li><div class=fn>QStrList <a href="#propertyNames"><b>propertyNames</b></a> ( bool super = FALSE ) const</div></li> <li><div class=fn>int <a href="#numProperties"><b>numProperties</b></a> ( bool super = FALSE ) const</div></li> </ul> <hr><a name="details"></a><h2>Detailed Description</h2> <p> The QMetaObject class contains meta information about Qt objects. <p> <p> The Meta Object System in Qt is responsible for the signal/slot mechanism for communication between objects, runtime type information and the property system. All meta information in Qt is kept in a single instance of QMetaObject per class. <p> In general, you will not have to use this class directly in any application program. However, if you write meta applications such as scripting engines or GUI builders, you might find these functions useful: <p> <ul> <li> <a href="#className">className</a>() to get the name of a class. <li> <a href="#superClassName">superClassName</a>() to get the name of the superclass. <li> <a href="#inherits">inherits</a>(), the function called by <a href="qobject.html#inherits">QObject::inherits</a>(). <li> <a href="#superClass">superClass</a>() to access the <a href="metaobjects.html#meta-object">meta object</a> of the superclass. <li> <a href="#numSlots">numSlots</a>(), <a href="#numSignals">numSignals</a>(), <a href="#slotNames">slotNames</a>(), and <a href="#signalNames">signalNames</a>() to get information about a class's signals and slots. <li> <a href="#property">property</a>() and <a href="#propertyNames">propertyNames</a>() to receive information about a class's properties. <li> <a href="#classInfo">classInfo</a>() and <a href="#numClassInfo">numClassInfo</a>() to access additional class information. </ul> <p> <p>See also <a href="objectmodel.html">Object Model</a>. <hr><h2>Member Function Documentation</h2> <h3 class=fn>const QClassInfo * <a name="classInfo"></a>QMetaObject::classInfo ( int index, bool super = FALSE ) const </h3> Returns the class information with index <em>index</em> or 0 if no such information exists. <p> If <em>super</em> is TRUE, inherited class information is included. <h3 class=fn>const char * <a name="classInfo-2"></a>QMetaObject::classInfo ( const char * name, bool super = FALSE ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Returns the class information with name <em>name</em> or 0 if no such information exists. <p> If <em>super</em> is TRUE, inherited class information is included. <h3 class=fn>const char * <a name="className"></a>QMetaObject::className () const </h3> <p> Returns the class name. <p> <p>See also <a href="qobject.html#className">QObject::className</a>() and <a href="#superClassName">superClassName</a>(). <h3 class=fn>int <a name="findProperty"></a>QMetaObject::findProperty ( const char * name, bool super = FALSE ) const </h3> Returns the index for the property with name <em>name</em> or -1 if no such property exists. <p> If <em>super</em> is TRUE, inherited properties are included. <p> <p>See also <a href="#property">property</a>() and <a href="#propertyNames">propertyNames</a>(). <h3 class=fn>bool <a name="inherits"></a>QMetaObject::inherits ( const char * clname ) const </h3> Returns TRUE if this class inherits <em>clname</em> within the <a href="metaobjects.html#meta-object">meta object</a> inheritance chain. <p> (A class is considered to inherit itself.) <h3 class=fn>int <a name="numClassInfo"></a>QMetaObject::numClassInfo ( bool super = FALSE ) const </h3> Returns the number of class information available for this class. <p> If <em>super</em> is TRUE, inherited class information is included. <h3 class=fn>int <a name="numProperties"></a>QMetaObject::numProperties ( bool super = FALSE ) const </h3> Returns the number of properties for this class. <p> If <em>super</em> is TRUE, inherited properties are included. <p> <p>See also <a href="#propertyNames">propertyNames</a>(). <h3 class=fn>int <a name="numSignals"></a>QMetaObject::numSignals ( bool super = FALSE ) const </h3> Returns the number of signals for this class. <p> If <em>super</em> is TRUE, inherited signals are included. <p> <p>See also <a href="#signalNames">signalNames</a>(). <h3 class=fn>int <a name="numSlots"></a>QMetaObject::numSlots ( bool super = FALSE ) const </h3> Returns the number of slots for this class. <p> If <em>super</em> is TRUE, inherited slots are included. <p> <p>See also <a href="#slotNames">slotNames</a>(). <h3 class=fn>const <a href="qmetaproperty.html">QMetaProperty</a> * <a name="property"></a>QMetaObject::property ( int index, bool super = FALSE ) const </h3> Returns the property meta data for the property at index <em>index</em> or 0 if no such property exists. <p> If <em>super</em> is TRUE, inherited properties are included. <p> <p>See also <a href="#propertyNames">propertyNames</a>(). <h3 class=fn><a href="qstrlist.html">QStrList</a> <a name="propertyNames"></a>QMetaObject::propertyNames ( bool super = FALSE ) const </h3> Returns a list with the names of all properties for this class. <p> If <em>super</em> is TRUE, inherited properties are included. <p> <p>See also <a href="#property">property</a>(). <h3 class=fn><a href="qstrlist.html">QStrList</a> <a name="signalNames"></a>QMetaObject::signalNames ( bool super = FALSE ) const </h3> Returns a list with the names of all signals for this class. <p> If <em>super</em> is TRUE, inherited signals are included. <p> <h3 class=fn><a href="qstrlist.html">QStrList</a> <a name="slotNames"></a>QMetaObject::slotNames ( bool super = FALSE ) const </h3> Returns a list with the names of all slots for this class. <p> If <em>super</em> is TRUE, inherited slots are included. <p> <p>See also <a href="#numSlots">numSlots</a>(). <h3 class=fn><a href="qmetaobject.html">QMetaObject</a> * <a name="superClass"></a>QMetaObject::superClass () const </h3> <p> Returns the <a href="metaobjects.html#meta-object">meta object</a> of the super class or 0 if there is no such object. <h3 class=fn>const char * <a name="superClassName"></a>QMetaObject::superClassName () const </h3> <p> Returns the class name of the superclass or 0 if there is no superclass in the <a href="qobject.html">QObject</a> hierachy. <p> <p>See also <a href="#className">className</a>(). <!-- eof --> <hr><p> This file is part of the <a href="index.html">Qt toolkit</a>. Copyright © 1995-2001 <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center> <table width=100% cellspacing=0 border=0><tr> <td>Copyright © 2001 <a href="http://www.trolltech.com">Trolltech</a><td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a> <td align=right><div align=right>Qt version 3.0.2</div> </table></div></address></body> </html>