summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqmetaobject.3qt
blob: 714ddefc1e9853ae10a4f667be87b37008c9b6df (plain)
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
'\" t
.TH QMetaObject 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA.  All rights reserved.  See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
QMetaObject \- Meta information about TQt objects
.SH SYNOPSIS
\fC#include <ntqmetaobject.h>\fR
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "const char * \fBclassName\fR () const"
.br
.ti -1c
.BI "const char * \fBsuperClassName\fR () const"
.br
.ti -1c
.BI "QMetaObject * \fBsuperClass\fR () const"
.br
.ti -1c
.BI "bool \fBinherits\fR ( const char * clname ) const"
.br
.ti -1c
.BI "int \fBnumSlots\fR ( bool super = FALSE ) const"
.br
.ti -1c
.BI "int \fBnumSignals\fR ( bool super = FALSE ) const"
.br
.ti -1c
.BI "QStrList \fBslotNames\fR ( bool super = FALSE ) const"
.br
.ti -1c
.BI "QStrList \fBsignalNames\fR ( bool super = FALSE ) const"
.br
.ti -1c
.BI "int \fBnumClassInfo\fR ( bool super = FALSE ) const"
.br
.ti -1c
.BI "const QClassInfo * \fBclassInfo\fR ( int index, bool super = FALSE ) const"
.br
.ti -1c
.BI "const char * \fBclassInfo\fR ( const char * name, bool super = FALSE ) const"
.br
.ti -1c
.BI "const QMetaProperty * \fBproperty\fR ( int index, bool super = FALSE ) const"
.br
.ti -1c
.BI "int \fBfindProperty\fR ( const char * name, bool super = FALSE ) const"
.br
.ti -1c
.BI "QStrList \fBpropertyNames\fR ( bool super = FALSE ) const"
.br
.ti -1c
.BI "int \fBnumProperties\fR ( bool super = FALSE ) const"
.br
.in -1c
.SH DESCRIPTION
The QMetaObject class contains meta information about TQt objects.
.PP
The Meta Object System in TQt is responsible for the signals and slots inter-object communication mechanism, runtime type information and the property system. All meta information in TQt is kept in a single instance of QMetaObject per class.
.PP
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:
.TP
className() to get the name of a class.
.TP
superClassName() to get the name of the superclass.
.TP
inherits(), the function called by TQObject::inherits().
.TP
superClass() to access the superclass's meta object.
.TP
numSlots(), numSignals(), slotNames(), and signalNames() to get information about a class's signals and slots.
.TP
property() and propertyNames() to obtain information about a class's properties.
.PP
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().
.PP
See also moc (Meta Object Compiler) and Object Model.
.PP
.SH MEMBER FUNCTION DOCUMENTATION
.SH "const QClassInfo * QMetaObject::classInfo ( int index, bool super = FALSE ) const"
Returns the class information with index \fIindex\fR or 0 if no such information exists.
.PP
If \fIsuper\fR is TRUE, inherited class information is included.
.SH "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.
.PP
Returns the class information with name \fIname\fR or 0 if no such information exists.
.PP
If \fIsuper\fR is TRUE, inherited class information is included.
.SH "const char * QMetaObject::className () const"
Returns the class name.
.PP
See also TQObject::className() and superClassName().
.SH "int QMetaObject::findProperty ( const char * name, bool super = FALSE ) const"
Returns the index for the property with name \fIname\fR or -1 if no such property exists.
.PP
If \fIsuper\fR is TRUE, inherited properties are included.
.PP
See also property() and propertyNames().
.SH "bool QMetaObject::inherits ( const char * clname ) const"
Returns TRUE if this class inherits \fIclname\fR within the meta object inheritance chain; otherwise returns FALSE.
.PP
(A class is considered to inherit itself.)
.SH "int QMetaObject::numClassInfo ( bool super = FALSE ) const"
Returns the number of items of class information available for this class.
.PP
If \fIsuper\fR is TRUE, inherited class information is included.
.SH "int QMetaObject::numProperties ( bool super = FALSE ) const"
Returns the number of properties for this class.
.PP
If \fIsuper\fR is TRUE, inherited properties are included.
.PP
See also propertyNames().
.SH "int QMetaObject::numSignals ( bool super = FALSE ) const"
Returns the number of signals for this class.
.PP
If \fIsuper\fR is TRUE, inherited signals are included.
.PP
See also signalNames().
.SH "int QMetaObject::numSlots ( bool super = FALSE ) const"
Returns the number of slots for this class.
.PP
If \fIsuper\fR is TRUE, inherited slots are included.
.PP
See also slotNames().
.SH "const QMetaProperty * QMetaObject::property ( int index, bool super = FALSE ) const"
Returns the property meta data for the property at index \fIindex\fR or 0 if no such property exists.
.PP
If \fIsuper\fR is TRUE, inherited properties are included.
.PP
See also propertyNames().
.SH "QStrList QMetaObject::propertyNames ( bool super = FALSE ) const"
Returns a list with the names of all this class's properties.
.PP
If \fIsuper\fR is TRUE, inherited properties are included.
.PP
See also property().
.SH "QStrList QMetaObject::signalNames ( bool super = FALSE ) const"
Returns a list with the names of all this class's signals.
.PP
If \fIsuper\fR is TRUE, inherited signals are included.
.SH "QStrList QMetaObject::slotNames ( bool super = FALSE ) const"
Returns a list with the names of all this class's slots.
.PP
If \fIsuper\fR is TRUE, inherited slots are included.
.PP
See also numSlots().
.SH "QMetaObject * QMetaObject::superClass () const"
Returns the meta object of the super class or 0 if there is no such object.
.SH "const char * QMetaObject::superClassName () const"
Returns the class name of the superclass or 0 if there is no superclass in the TQObject hierachy.
.PP
See also className().

.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqmetaobject.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in
.BR http://doc.trolltech.com/bughowto.html .
Good bug reports help us to help you. Thank you.
.P
The definitive TQt documentation is provided in HTML format; it is
located at $TQTDIR/doc/html and can be read using TQt 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. 
.P
If you find errors in this manual page, please report them to
.BR [email protected] .
Please include the name of the manual page (tqmetaobject.3qt) and the Qt
version (3.3.8).