1QMetaObject(3qt) QMetaObject(3qt)
2
3
4
6 QMetaObject - Meta information about Qt objects
7
9 #include <qmetaobject.h>
10
11 Public Members
12 const char * className () const
13 const char * superClassName () const
14 QMetaObject * superClass () const
15 bool inherits ( const char * clname ) const
16 int numSlots ( bool super = FALSE ) const
17 int numSignals ( bool super = FALSE ) const
18 QStrList slotNames ( bool super = FALSE ) const
19 QStrList signalNames ( bool super = FALSE ) const
20 int numClassInfo ( bool super = FALSE ) const
21 const QClassInfo * classInfo ( int index, bool super = FALSE ) const
22 const char * classInfo ( const char * name, bool super = FALSE ) const
23 const QMetaProperty * property ( int index, bool super = FALSE ) const
24 int findProperty ( const char * name, bool super = FALSE ) const
25 QStrList propertyNames ( bool super = FALSE ) const
26 int numProperties ( bool super = FALSE ) const
27
29 The QMetaObject class contains meta information about Qt objects.
30
31 The Meta Object System in Qt is responsible for the signals and slots
32 inter-object communication mechanism, runtime type information and the
33 property system. All meta information in Qt is kept in a single
34 instance of QMetaObject per class.
35
36 This class is not normally required for application programming. But if
37 you write meta applications, such as scripting engines or GUI builders,
38 you might find these functions useful:
39
40 className() to get the name of a class.
41
42 superClassName() to get the name of the superclass.
43
44 inherits(), the function called by QObject::inherits().
45
46 superClass() to access the superclass's meta object.
47
48 numSlots(), numSignals(), slotNames(), and signalNames() to get
49 information about a class's signals and slots.
50
51 property() and propertyNames() to obtain information about a class's
52 properties.
53
54 Classes may have a list of name-value pairs of class information. The
55 number of pairs is returned by numClassInfo(), and values are returned
56 by classInfo().
57
58 See also moc (Meta Object Compiler) and Object Model.
59
62 const
63 Returns the class information with index index or 0 if no such
64 information exists.
65
66 If super is TRUE, inherited class information is included.
67
69 const
70 This is an overloaded member function, provided for convenience. It
71 behaves essentially like the above function.
72
73 Returns the class information with name name or 0 if no such
74 information exists.
75
76 If super is TRUE, inherited class information is included.
77
79 Returns the class name.
80
81 See also QObject::className() and superClassName().
82
84 Returns the index for the property with name name or -1 if no such
85 property exists.
86
87 If super is TRUE, inherited properties are included.
88
89 See also property() and propertyNames().
90
92 Returns TRUE if this class inherits clname within the meta object
93 inheritance chain; otherwise returns FALSE.
94
95 (A class is considered to inherit itself.)
96