[190] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qmetaobject.cpp:80 -->
|
---|
| 3 | <html>
|
---|
| 4 | <head>
|
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
| 6 | <title>QMetaObject Class</title>
|
---|
| 7 | <style type="text/css"><!--
|
---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
---|
| 11 | body { background: #ffffff; color: black; }
|
---|
| 12 | --></style>
|
---|
| 13 | </head>
|
---|
| 14 | <body>
|
---|
| 15 |
|
---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
| 17 | <tr bgcolor="#E5E5E5">
|
---|
| 18 | <td valign=center>
|
---|
| 19 | <a href="index.html">
|
---|
| 20 | <font color="#004faf">Home</font></a>
|
---|
| 21 | | <a href="classes.html">
|
---|
| 22 | <font color="#004faf">All Classes</font></a>
|
---|
| 23 | | <a href="mainclasses.html">
|
---|
| 24 | <font color="#004faf">Main Classes</font></a>
|
---|
| 25 | | <a href="annotated.html">
|
---|
| 26 | <font color="#004faf">Annotated</font></a>
|
---|
| 27 | | <a href="groups.html">
|
---|
| 28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
| 29 | | <a href="functions.html">
|
---|
| 30 | <font color="#004faf">Functions</font></a>
|
---|
| 31 | </td>
|
---|
| 32 | <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>
|
---|
| 33 |
|
---|
| 34 | <p>The QMetaObject class contains meta information about Qt objects.
|
---|
| 35 | <a href="#details">More...</a>
|
---|
| 36 | <p><tt>#include <<a href="qmetaobject-h.html">qmetaobject.h</a>></tt>
|
---|
| 37 | <p><a href="qmetaobject-members.html">List of all member functions.</a>
|
---|
| 38 | <h2>Public Members</h2>
|
---|
| 39 | <ul>
|
---|
| 40 | <li class=fn>const char * <a href="#className"><b>className</b></a> () const</li>
|
---|
| 41 | <li class=fn>const char * <a href="#superClassName"><b>superClassName</b></a> () const</li>
|
---|
| 42 | <li class=fn>QMetaObject * <a href="#superClass"><b>superClass</b></a> () const</li>
|
---|
| 43 | <li class=fn>bool <a href="#inherits"><b>inherits</b></a> ( const char * clname ) const</li>
|
---|
| 44 | <li class=fn>int <a href="#numSlots"><b>numSlots</b></a> ( bool super = FALSE ) const</li>
|
---|
| 45 | <li class=fn>int <a href="#numSignals"><b>numSignals</b></a> ( bool super = FALSE ) const</li>
|
---|
| 46 | <li class=fn>QStrList <a href="#slotNames"><b>slotNames</b></a> ( bool super = FALSE ) const</li>
|
---|
| 47 | <li class=fn>QStrList <a href="#signalNames"><b>signalNames</b></a> ( bool super = FALSE ) const</li>
|
---|
| 48 | <li class=fn>int <a href="#numClassInfo"><b>numClassInfo</b></a> ( bool super = FALSE ) const</li>
|
---|
| 49 | <li class=fn>const QClassInfo * <a href="#classInfo"><b>classInfo</b></a> ( int index, bool super = FALSE ) const</li>
|
---|
| 50 | <li class=fn>const char * <a href="#classInfo-2"><b>classInfo</b></a> ( const char * name, bool super = FALSE ) const</li>
|
---|
| 51 | <li class=fn>const QMetaProperty * <a href="#property"><b>property</b></a> ( int index, bool super = FALSE ) const</li>
|
---|
| 52 | <li class=fn>int <a href="#findProperty"><b>findProperty</b></a> ( const char * name, bool super = FALSE ) const</li>
|
---|
| 53 | <li class=fn>QStrList <a href="#propertyNames"><b>propertyNames</b></a> ( bool super = FALSE ) const</li>
|
---|
| 54 | <li class=fn>int <a href="#numProperties"><b>numProperties</b></a> ( bool super = FALSE ) const</li>
|
---|
| 55 | </ul>
|
---|
| 56 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 | The QMetaObject class contains meta information about Qt objects.
|
---|
| 60 | <p>
|
---|
| 61 | <p> The Meta Object System in Qt is responsible for the signals and
|
---|
| 62 | slots inter-object communication mechanism, runtime type
|
---|
| 63 | information and the property system. All meta information in Qt is
|
---|
| 64 | kept in a single instance of QMetaObject per class.
|
---|
| 65 | <p> This class is not normally required for application programming.
|
---|
| 66 | But if you write meta applications, such as scripting engines or
|
---|
| 67 | GUI builders, you might find these functions useful:
|
---|
| 68 | <ul>
|
---|
| 69 | <li> <a href="#className">className</a>() to get the name of a class.
|
---|
| 70 | <li> <a href="#superClassName">superClassName</a>() to get the name of the superclass.
|
---|
| 71 | <li> <a href="#inherits">inherits</a>(), the function called by <a href="qobject.html#inherits">QObject::inherits</a>().
|
---|
| 72 | <li> <a href="#superClass">superClass</a>() to access the superclass's <a href="metaobjects.html#meta-object">meta object</a>.
|
---|
| 73 | <li> <a href="#numSlots">numSlots</a>(), <a href="#numSignals">numSignals</a>(), <a href="#slotNames">slotNames</a>(), and <a href="#signalNames">signalNames</a>() to get
|
---|
| 74 | information about a class's signals and slots.
|
---|
| 75 | <li> <a href="#property">property</a>() and <a href="#propertyNames">propertyNames</a>() to obtain information about a
|
---|
| 76 | class's properties.
|
---|
| 77 | </ul>
|
---|
| 78 | <p> Classes may have a list of name-value pairs of class information.
|
---|
| 79 | The number of pairs is returned by <a href="#numClassInfo">numClassInfo</a>(), and values are
|
---|
| 80 | returned by <a href="#classInfo">classInfo</a>().
|
---|
| 81 | <p> <p>See also <a href="moc.html">moc (Meta Object Compiler)</a> and <a href="objectmodel.html">Object Model</a>.
|
---|
| 82 |
|
---|
| 83 | <p>
|
---|
| 84 | <hr><h2>Member Function Documentation</h2>
|
---|
| 85 | <h3 class=fn>const QClassInfo * <a name="classInfo"></a>QMetaObject::classInfo ( int index, bool super = FALSE ) const
|
---|
| 86 | </h3>
|
---|
| 87 | Returns the class information with index <em>index</em> or 0 if no such
|
---|
| 88 | information exists.
|
---|
| 89 | <p> If <em>super</em> is TRUE, inherited class information is included.
|
---|
| 90 |
|
---|
| 91 | <h3 class=fn>const char * <a name="classInfo-2"></a>QMetaObject::classInfo ( const char * name, bool super = FALSE ) const
|
---|
| 92 | </h3>
|
---|
| 93 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
| 94 | <p> Returns the class information with name <em>name</em> or 0 if no such
|
---|
| 95 | information exists.
|
---|
| 96 | <p> If <em>super</em> is TRUE, inherited class information is included.
|
---|
| 97 |
|
---|
| 98 | <h3 class=fn>const char * <a name="className"></a>QMetaObject::className () const
|
---|
| 99 | </h3>
|
---|
| 100 |
|
---|
| 101 | <p> Returns the class name.
|
---|
| 102 | <p> <p>See also <a href="qobject.html#className">QObject::className</a>() and <a href="#superClassName">superClassName</a>().
|
---|
| 103 |
|
---|
| 104 | <h3 class=fn>int <a name="findProperty"></a>QMetaObject::findProperty ( const char * name, bool super = FALSE ) const
|
---|
| 105 | </h3>
|
---|
| 106 | Returns the index for the property with name <em>name</em> or -1 if no
|
---|
| 107 | such property exists.
|
---|
| 108 | <p> If <em>super</em> is TRUE, inherited properties are included.
|
---|
| 109 | <p> <p>See also <a href="#property">property</a>() and <a href="#propertyNames">propertyNames</a>().
|
---|
| 110 |
|
---|
| 111 | <h3 class=fn>bool <a name="inherits"></a>QMetaObject::inherits ( const char * clname ) const
|
---|
| 112 | </h3>
|
---|
| 113 | Returns TRUE if this class inherits <em>clname</em> within the <a href="metaobjects.html#meta-object">meta object</a> inheritance chain; otherwise returns FALSE.
|
---|
| 114 | <p> (A class is considered to inherit itself.)
|
---|
| 115 |
|
---|
| 116 | <h3 class=fn>int <a name="numClassInfo"></a>QMetaObject::numClassInfo ( bool super = FALSE ) const
|
---|
| 117 | </h3>
|
---|
| 118 | Returns the number of items of class information available for
|
---|
| 119 | this class.
|
---|
| 120 | <p> If <em>super</em> is TRUE, inherited class information is included.
|
---|
| 121 |
|
---|
| 122 | <h3 class=fn>int <a name="numProperties"></a>QMetaObject::numProperties ( bool super = FALSE ) const
|
---|
| 123 | </h3>
|
---|
| 124 | Returns the number of properties for this class.
|
---|
| 125 | <p> If <em>super</em> is TRUE, inherited properties are included.
|
---|
| 126 | <p> <p>See also <a href="#propertyNames">propertyNames</a>().
|
---|
| 127 |
|
---|
| 128 | <h3 class=fn>int <a name="numSignals"></a>QMetaObject::numSignals ( bool super = FALSE ) const
|
---|
| 129 | </h3>
|
---|
| 130 | Returns the number of signals for this class.
|
---|
| 131 | <p> If <em>super</em> is TRUE, inherited signals are included.
|
---|
| 132 | <p> <p>See also <a href="#signalNames">signalNames</a>().
|
---|
| 133 |
|
---|
| 134 | <h3 class=fn>int <a name="numSlots"></a>QMetaObject::numSlots ( bool super = FALSE ) const
|
---|
| 135 | </h3>
|
---|
| 136 | Returns the number of slots for this class.
|
---|
| 137 | <p> If <em>super</em> is TRUE, inherited slots are included.
|
---|
| 138 | <p> <p>See also <a href="#slotNames">slotNames</a>().
|
---|
| 139 |
|
---|
| 140 | <h3 class=fn>const <a href="qmetaproperty.html">QMetaProperty</a> * <a name="property"></a>QMetaObject::property ( int index, bool super = FALSE ) const
|
---|
| 141 | </h3>
|
---|
| 142 | Returns the property meta data for the property at index <em>index</em>
|
---|
| 143 | or 0 if no such property exists.
|
---|
| 144 | <p> If <em>super</em> is TRUE, inherited properties are included.
|
---|
| 145 | <p> <p>See also <a href="#propertyNames">propertyNames</a>().
|
---|
| 146 |
|
---|
| 147 | <h3 class=fn><a href="qstrlist.html">QStrList</a> <a name="propertyNames"></a>QMetaObject::propertyNames ( bool super = FALSE ) const
|
---|
| 148 | </h3>
|
---|
| 149 | Returns a list with the names of all this class's properties.
|
---|
| 150 | <p> If <em>super</em> is TRUE, inherited properties are included.
|
---|
| 151 | <p> <p>See also <a href="#property">property</a>().
|
---|
| 152 |
|
---|
| 153 | <h3 class=fn><a href="qstrlist.html">QStrList</a> <a name="signalNames"></a>QMetaObject::signalNames ( bool super = FALSE ) const
|
---|
| 154 | </h3>
|
---|
| 155 | Returns a list with the names of all this class's signals.
|
---|
| 156 | <p> If <em>super</em> is TRUE, inherited signals are included.
|
---|
| 157 |
|
---|
| 158 | <h3 class=fn><a href="qstrlist.html">QStrList</a> <a name="slotNames"></a>QMetaObject::slotNames ( bool super = FALSE ) const
|
---|
| 159 | </h3>
|
---|
| 160 | Returns a list with the names of all this class's slots.
|
---|
| 161 | <p> If <em>super</em> is TRUE, inherited slots are included.
|
---|
| 162 | <p> <p>See also <a href="#numSlots">numSlots</a>().
|
---|
| 163 |
|
---|
| 164 | <h3 class=fn><a href="qmetaobject.html">QMetaObject</a> * <a name="superClass"></a>QMetaObject::superClass () const
|
---|
| 165 | </h3>
|
---|
| 166 |
|
---|
| 167 | <p> Returns the <a href="metaobjects.html#meta-object">meta object</a> of the super class or 0 if there is no
|
---|
| 168 | such object.
|
---|
| 169 |
|
---|
| 170 | <h3 class=fn>const char * <a name="superClassName"></a>QMetaObject::superClassName () const
|
---|
| 171 | </h3>
|
---|
| 172 |
|
---|
| 173 | <p> Returns the class name of the superclass or 0 if there is no
|
---|
| 174 | superclass in the <a href="qobject.html">QObject</a> hierachy.
|
---|
| 175 | <p> <p>See also <a href="#className">className</a>().
|
---|
| 176 |
|
---|
| 177 | <!-- eof -->
|
---|
| 178 | <hr><p>
|
---|
| 179 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
| 180 | Copyright © 1995-2007
|
---|
| 181 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
| 182 | <table width=100% cellspacing=0 border=0><tr>
|
---|
| 183 | <td>Copyright © 2007
|
---|
| 184 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
| 185 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
| 186 | </table></div></address></body>
|
---|
| 187 | </html>
|
---|