File: qmetaobject.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (193 lines) | stat: -rw-r--r-- 14,612 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - 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: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">

<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>

<h1 align=center>QMetaObject Class Reference</h1><br clear="all">
<p>
The QMetaObject class contains meta information about Qt objects.
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qmetaobject-h.html">qmetaobject.h</a>&gt;</code>
<p><a href="qmetaobject-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><b>QMetaObject</b>(constchar*class_name, constchar*superclass_name, QMetaData*slot_data, intn_slots, QMetaData*signal_data, intn_signals)(internal)</div>
<li><div class="fn"><b>QMetaObject</b>(constchar*class_name, constchar*superclass_name, QMetaData*slot_data, intn_slots, QMetaData*signal_data, intn_signals, QMetaProperty*prop_data, intn_props, QMetaEnum*enum_data, intn_enums, QClassInfo*class_info, intn_info)(internal)</div>
<li><div class="fn">virtual<b>~QMetaObject</b>()(internal)</div>
<li><div class="fn">constchar*<a href="#e8bcda"><b>className</b></a>()const</div>
<li><div class="fn">constchar*<a href="#3ab140"><b>superClassName</b></a>()const</div>
<li><div class="fn">QMetaObject*<a href="#99683a"><b>superClass</b></a>()const</div>
<li><div class="fn">bool<a href="#7314ac"><b>inherits</b></a>(constchar*clname)const</div>
<li><div class="fn">int<a href="#04ea03"><b>numSlots</b></a>(boolsuper=FALSE)const</div>
<li><div class="fn">int<a href="#e1d01d"><b>numSignals</b></a>(boolsuper=FALSE)const</div>
<li><div class="fn">QMetaData*<b>slot</b>(intindex, boolsuper=FALSE)const(internal)</div>
<li><div class="fn">QMetaData*<b>signal</b>(intindex, boolsuper=FALSE)const(internal)</div>
<li><div class="fn">QMetaData*<b>slot</b>(constchar*, boolsuper=FALSE)const(internal)</div>
<li><div class="fn">QMetaData*<b>signal</b>(constchar*, boolsuper=FALSE)const(internal)</div>
<li><div class="fn">QStrList<a href="#d347e1"><b>slotNames</b></a>(boolsuper=FALSE)const</div>
<li><div class="fn">QStrList<a href="#ce8c4d"><b>signalNames</b></a>(boolsuper=FALSE)const</div>
<li><div class="fn">int<a href="#937e7c"><b>numClassInfo</b></a>(boolsuper=FALSE)const</div>
<li><div class="fn">QClassInfo*<a href="#3efbb8"><b>classInfo</b></a>(intindex, boolsuper=FALSE)const</div>
<li><div class="fn">constchar*<a href="#37c0e2"><b>classInfo</b></a>(constchar*name, boolsuper=FALSE)const</div>
<li><div class="fn">constQMetaProperty*<a href="#843ead"><b>property</b></a>(constchar*name, boolsuper=FALSE)const</div>
<li><div class="fn">QStrList<a href="#8c9b9c"><b>propertyNames</b></a>(boolsuper=FALSE)const</div>
<li><div class="fn">void<b>resolveProperty</b>(QMetaProperty*prop)(internal)</div>
<li><div class="fn">void<b>set_slot_access</b>(QMetaData::Access*)(internal)</div>
<li><div class="fn">QMetaData::Access<b>slot_access</b>(intindex, boolsuper=FALSE)(internal)</div>
</ul>
<h2>Static Public Members</h2>
<ul>
<li><div class="fn">QMetaObject*<b>new_metaobject</b>(constchar*, constchar*, QMetaData*, int, QMetaData*, int, QMetaProperty*prop_data, intn_props, QMetaEnum*enum_data, intn_enums, QClassInfo*class_info, intn_info)(internal)</div>
<li><div class="fn">QMetaObject*<b>new_metaobject</b>(constchar*, constchar*, QMetaData*, int, QMetaData*, int)(internal)</div>
<li><div class="fn">QMetaData*<b>new_metadata</b>(int)(internal)</div>
<li><div class="fn">QMetaData::Access*<b>new_metaaccess</b>(int)(internal)</div>
<li><div class="fn">QMetaEnum*<b>new_metaenum</b>(int)(internal)</div>
<li><div class="fn">QMetaEnum::Item*<b>new_metaenum_item</b>(int)(internal)</div>
<li><div class="fn">QMetaProperty*<b>new_metaproperty</b>(int)(internal)</div>
<li><div class="fn">QClassInfo*<b>new_classinfo</b>(int)(internal)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QMetaObject class contains meta information about Qt objects.
<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. Most of the class members and functions are
internal, <strong> do not use them </strong>.
<p>Some functions, however, are marked as public API and may make sense
for certain "meta" applications such as scripting engines or GUI
builders:
<ul>
<li> <a href="#e8bcda">className</a>() to get the name of a class.
<li> <a href="#3ab140">superClassName</a>() to get the name of the superclass.
<li> <a href="#7314ac">inherits</a>(), the function called by <a href="qobject.html#beb5d8">QObject::inherits</a>().
<li> <a href="#99683a">superClass</a>() to access the meta object of the superclass.
<li> <a href="#04ea03">numSlots</a>(), <a href="#e1d01d">numSignals</a>(), <a href="#d347e1">slotNames</a>() and  <a href="#ce8c4d">signalNames</a>() to get
information about a classes signals and slots.
<li> <a href="#843ead">property</a>() and <a href="#8c9b9c">propertyNames</a>() to receive information about a
classes properties.
<li> <a href="#37c0e2">classInfo</a>() and <a href="#937e7c">numClassInfo</a>() to access additional class information.
</ul>

<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a href="qclassinfo.html">QClassInfo</a>*<a name="3efbb8"></a>QMetaObject::classInfo(intindex, boolsuper=FALSE)const</h3>
<p>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">constchar*<a name="37c0e2"></a>QMetaObject::classInfo(constchar*name, boolsuper=FALSE)const</h3>
<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">constchar*<a name="e8bcda"></a>QMetaObject::className()const</h3>
<p>Returns the class name.
<p>See also  <a href="qobject.html#fa7716">QObject::className</a>() and <a href="#3ab140">superClassName</a>().
<h3 class="fn">bool<a name="7314ac"></a>QMetaObject::inherits(constchar*clname)const</h3>
<p>Returns TRUE if this class inherits <em>clname</em> within the meta
object inheritance chain.
<p>(A class is considered to inherit itself.).
<h3 class="fn">int<a name="937e7c"></a>QMetaObject::numClassInfo(boolsuper=FALSE)const</h3>
<p>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="e1d01d"></a>QMetaObject::numSignals(boolsuper=FALSE)const</h3>
<p>Returns the number of signals for this class.
<p>If <em>super</em> is TRUE, inherited signals are included.
<p>See also  <a href="#ce8c4d">signalNames</a>().
<h3 class="fn">int<a name="04ea03"></a>QMetaObject::numSlots(boolsuper=FALSE)const</h3>
<p>Returns the number of slots for this class.
<p>If <em>super</em> is TRUE, inherited slots are included.
<p>See also  <a href="#d347e1">slotNames</a>().
<h3 class="fn">const<a href="qmetaproperty.html">QMetaProperty</a>*<a name="843ead"></a>QMetaObject::property(constchar*name, boolsuper=FALSE)const</h3>
<p>Returns the property meta data for the property with name <em>name</em>
or 0 if no such property exists.
<p>If <em>super</em> is TRUE, inherited properties are included.
<p>See also  <a href="#8c9b9c">propertyNames</a>().
<h3 class="fn"><a href="qstrlist.html">QStrList</a><a name="8c9b9c"></a>QMetaObject::propertyNames(boolsuper=FALSE)const</h3>
<p>Returns a list with the names of all properties for this class.
<p>If <em>super</em> is TRUE, inherited properties are included.
<p>See also  <a href="#843ead">property</a>().
<h3 class="fn"><a href="qstrlist.html">QStrList</a><a name="ce8c4d"></a>QMetaObject::signalNames(boolsuper=FALSE)const</h3>
<p>Returns a list with the names of all signals for this class.
<p>If <em>super</em> is TRUE, inherited signals are included.
<p>See also  <a href="#4607fe">signal</a>().
<h3 class="fn"><a href="qstrlist.html">QStrList</a><a name="d347e1"></a>QMetaObject::slotNames(boolsuper=FALSE)const</h3>
<p>Returns a list with the names of all slots for this class.
<p>If <em>super</em> is TRUE, inherited slots are included.
<p>See also  <a href="#04ea03">numSlots</a>().
<h3 class="fn">QMetaObject*<a name="99683a"></a>QMetaObject::superClass()const</h3>
<p>Returns the meta object of the super class or 0, if there is no such
object.
<h3 class="fn">constchar*<a name="3ab140"></a>QMetaObject::superClassName()const</h3>
<p>Returns the class name of the super class, or 0 if there is no super
class in the <a href="qobject.html">QObject</a> hierarchy.
<p>See also  <a href="#e8bcda">className</a>().
<h3 class="fn"><a name="1d94c4"></a>QMetaObject::QMetaObject(constchar*class_name, constchar*superclass_name, <a href="qmetadata.html">QMetaData</a>*slot_data, intn_slots, <a href="qmetadata.html">QMetaData</a>*signal_data, intn_signals)</h3>
<p>For internal use only.
<h3 class="fn"><a name="887d23"></a>QMetaObject::QMetaObject(constchar*class_name, constchar*superclass_name, <a href="qmetadata.html">QMetaData</a>*slot_data, intn_slots, <a href="qmetadata.html">QMetaData</a>*signal_data, intn_signals, <a href="qmetaproperty.html">QMetaProperty</a>*prop_data, intn_props, QMetaEnum*enum_data, intn_enums, <a href="qclassinfo.html">QClassInfo</a>*class_info, intn_info)</h3>
<p>For internal use only.
<h3 class="fn"><a name="054d84"></a>QMetaObject::~QMetaObject() <code>[virtual]</code></h3>
<p>For internal use only.
<h3 class="fn"><a href="qclassinfo.html">QClassInfo</a>*<a name="b6e0a9"></a>QMetaObject::new_classinfo(intnumEntries) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn">QMetaData::Access*<a name="396cc2"></a>QMetaObject::new_metaaccess(intnumEntries) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn"><a href="qmetadata.html">QMetaData</a>*<a name="4cc7c0"></a>QMetaObject::new_metadata(intnumEntries) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn">QMetaEnum*<a name="c5ff3f"></a>QMetaObject::new_metaenum(intnumEntries) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn">QMetaEnum::Item*<a name="23fdfc"></a>QMetaObject::new_metaenum_item(intnumEntries) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn">QMetaObject*<a name="b1a2ca"></a>QMetaObject::new_metaobject(constchar*classname, constchar*superclassname, <a href="qmetadata.html">QMetaData</a>*slot_data, intn_slots, <a href="qmetadata.html">QMetaData</a>*signal_data,intn_signals) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn">QMetaObject*<a name="5d1f33"></a>QMetaObject::new_metaobject(constchar*classname, constchar*superclassname, <a href="qmetadata.html">QMetaData</a>*slot_data, intn_slots, <a href="qmetadata.html">QMetaData</a>*signal_data,intn_signals, <a href="qmetaproperty.html">QMetaProperty</a>*prop_data, intn_props, QMetaEnum*enum_data, intn_enums, <a href="qclassinfo.html">QClassInfo</a>*class_info, intn_info) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn"><a href="qmetaproperty.html">QMetaProperty</a>*<a name="c6ced4"></a>QMetaObject::new_metaproperty(intnumEntries) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn">void<a name="7526c0"></a>QMetaObject::resolveProperty(<a href="qmetaproperty.html">QMetaProperty</a>*prop)</h3>
<p>For internal use only.
<h3 class="fn">void<a name="2cf473"></a>QMetaObject::set_slot_access(QMetaData::Access*access)</h3>
<p>For internal use only.
<h3 class="fn"><a href="qmetadata.html">QMetaData</a>*<a name="4607fe"></a>QMetaObject::signal(constchar*<a href="n.html">n</a>, boolsuper=FALSE)const</h3>
<p>For internal use only.
<h3 class="fn"><a href="qmetadata.html">QMetaData</a>*<a name="9b578a"></a>QMetaObject::signal(intindex, boolsuper=FALSE)const</h3>
<p>For internal use only.
<h3 class="fn"><a href="qmetadata.html">QMetaData</a>*<a name="bcfe23"></a>QMetaObject::slot(constchar*<a href="n.html">n</a>, boolsuper=FALSE)const</h3>
<p>For internal use only.
<h3 class="fn"><a href="qmetadata.html">QMetaData</a>*<a name="dd2470"></a>QMetaObject::slot(intindex, boolsuper=FALSE)const</h3>
<p>For internal use only.
<h3 class="fn">QMetaData::Access<a name="125c63"></a>QMetaObject::slot_access(intindex, boolsuper=FALSE)</h3>
<p>For internal use only.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright &copy; 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 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>