Eneboo - Documentación para desarrolladores
|
The QMetaObject class contains meta information about Qt objects. Más...
#include <qmetaobject.h>
Métodos públicos | |
QMetaObject (const char *const class_name, QMetaObject *superclass, const QMetaData *const slot_data, int n_slots, const QMetaData *const signal_data, int n_signals, const QMetaProperty *const prop_data, int n_props, const QMetaEnum *const enum_data, int n_enums, const QClassInfo *const class_info, int n_info) | |
QMetaObject (const char *const class_name, QMetaObject *superclass, const QMetaData *const slot_data, int n_slots, const QMetaData *const signal_data, int n_signals, const QMetaProperty *const prop_data, int n_props, const QMetaEnum *const enum_data, int n_enums, bool(*qt_static_property)(QObject *, int, int, QVariant *), const QClassInfo *const class_info, int n_info) | |
virtual | ~QMetaObject () |
const char * | className () const |
const char * | superClassName () const |
QMetaObject * | superClass () const |
bool | inherits (const char *clname) const |
int | numSlots (bool super=FALSE) const |
int | numSignals (bool super=FALSE) const |
int | findSlot (const char *, bool super=FALSE) const |
int | findSignal (const char *, bool super=FALSE) const |
const QMetaData * | slot (int index, bool super=FALSE) const |
const QMetaData * | signal (int index, bool super=FALSE) const |
QStrList | slotNames (bool super=FALSE) const |
QStrList | signalNames (bool super=FALSE) const |
int | slotOffset () const |
int | signalOffset () const |
int | propertyOffset () const |
int | numClassInfo (bool super=FALSE) const |
const QClassInfo * | classInfo (int index, bool super=FALSE) const |
const char * | classInfo (const char *name, bool super=FALSE) const |
const QMetaProperty * | property (int index, bool super=FALSE) const |
int | findProperty (const char *name, bool super=FALSE) const |
int | indexOfProperty (const QMetaProperty *, bool super=FALSE) const |
const QMetaProperty * | resolveProperty (const QMetaProperty *) const |
int | resolveProperty (int) const |
QStrList | propertyNames (bool super=FALSE) const |
int | numProperties (bool super=FALSE) const |
QStrList | enumeratorNames (bool super=FALSE) const |
int | numEnumerators (bool super=FALSE) const |
const QMetaEnum * | enumerator (const char *name, bool super=FALSE) const |
bool | qt_static_property (QObject *o, int id, int f, QVariant *v) |
QMetaObject (const char *const class_name, QMetaObject *superclass, const QMetaData *const slot_data, int n_slots, const QMetaData *const signal_data, int n_signals, const QMetaProperty *const prop_data, int n_props, const QMetaEnum *const enum_data, int n_enums, const QClassInfo *const class_info, int n_info) | |
QMetaObject (const char *const class_name, QMetaObject *superclass, const QMetaData *const slot_data, int n_slots, const QMetaData *const signal_data, int n_signals, const QMetaProperty *const prop_data, int n_props, const QMetaEnum *const enum_data, int n_enums, bool(*qt_static_property)(QObject *, int, int, QVariant *), const QClassInfo *const class_info, int n_info) | |
virtual | ~QMetaObject () |
const char * | className () const |
const char * | superClassName () const |
QMetaObject * | superClass () const |
bool | inherits (const char *clname) const |
int | numSlots (bool super=FALSE) const |
int | numSignals (bool super=FALSE) const |
int | findSlot (const char *, bool super=FALSE) const |
int | findSignal (const char *, bool super=FALSE) const |
const QMetaData * | slot (int index, bool super=FALSE) const |
const QMetaData * | signal (int index, bool super=FALSE) const |
QStrList | slotNames (bool super=FALSE) const |
QStrList | signalNames (bool super=FALSE) const |
int | slotOffset () const |
int | signalOffset () const |
int | propertyOffset () const |
int | numClassInfo (bool super=FALSE) const |
const QClassInfo * | classInfo (int index, bool super=FALSE) const |
const char * | classInfo (const char *name, bool super=FALSE) const |
const QMetaProperty * | property (int index, bool super=FALSE) const |
int | findProperty (const char *name, bool super=FALSE) const |
int | indexOfProperty (const QMetaProperty *, bool super=FALSE) const |
const QMetaProperty * | resolveProperty (const QMetaProperty *) const |
int | resolveProperty (int) const |
QStrList | propertyNames (bool super=FALSE) const |
int | numProperties (bool super=FALSE) const |
QStrList | enumeratorNames (bool super=FALSE) const |
int | numEnumerators (bool super=FALSE) const |
const QMetaEnum * | enumerator (const char *name, bool super=FALSE) const |
bool | qt_static_property (QObject *o, int id, int f, QVariant *v) |
Métodos públicos estáticos | |
static QMetaObject * | new_metaobject (const char *, QMetaObject *, const QMetaData *const, int, const QMetaData *const, int, const QMetaProperty *const prop_data, int n_props, const QMetaEnum *const enum_data, int n_enums, const QClassInfo *const class_info, int n_info) |
static QMetaObject * | new_metaobject (const char *, QMetaObject *, const QMetaData *const, int, const QMetaData *const, int, const QMetaProperty *const prop_data, int n_props, const QMetaEnum *const enum_data, int n_enums, bool(*qt_static_property)(QObject *, int, int, QVariant *), const QClassInfo *const class_info, int n_info) |
static QMetaObject * | metaObject (const char *class_name) |
static bool | hasMetaObject (const char *class_name) |
static QMetaObject * | new_metaobject (const char *, QMetaObject *, const QMetaData *const, int, const QMetaData *const, int, const QMetaProperty *const prop_data, int n_props, const QMetaEnum *const enum_data, int n_enums, const QClassInfo *const class_info, int n_info) |
static QMetaObject * | new_metaobject (const char *, QMetaObject *, const QMetaData *const, int, const QMetaData *const, int, const QMetaProperty *const prop_data, int n_props, const QMetaEnum *const enum_data, int n_enums, bool(*qt_static_property)(QObject *, int, int, QVariant *), const QClassInfo *const class_info, int n_info) |
static QMetaObject * | metaObject (const char *class_name) |
static bool | hasMetaObject (const char *class_name) |
Amigas | |
class | QMetaProperty |
The QMetaObject class contains meta information about Qt objects.
The Meta Object System in Qt is responsible for the signals and slots inter-object communication mechanism, runtime type information and the property system. All meta information in Qt is kept in a single instance of QMetaObject per class.
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: className() to get the name of a class. superClassName() to get the name of the superclass. inherits(), the function called by QObject::inherits(). superClass() to access the superclass's meta object. numSlots(), numSignals(), slotNames(), and signalNames() to get information about a class's signals and slots. property() and propertyNames() to obtain information about a class's properties.
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().
QMetaObject::QMetaObject | ( | const char *const | class_name, |
QMetaObject * | superclass, | ||
const QMetaData *const | slot_data, | ||
int | n_slots, | ||
const QMetaData *const | signal_data, | ||
int | n_signals, | ||
const QMetaProperty *const | prop_data, | ||
int | n_props, | ||
const QMetaEnum *const | enum_data, | ||
int | n_enums, | ||
const QClassInfo *const | class_info, | ||
int | n_info | ||
) |
QMetaObject::QMetaObject | ( | const char *const | class_name, |
QMetaObject * | superclass, | ||
const QMetaData *const | slot_data, | ||
int | n_slots, | ||
const QMetaData *const | signal_data, | ||
int | n_signals, | ||
const QMetaProperty *const | prop_data, | ||
int | n_props, | ||
const QMetaEnum *const | enum_data, | ||
int | n_enums, | ||
bool(*)(QObject *, int, int, QVariant *) | qt_static_property, | ||
const QClassInfo *const | class_info, | ||
int | n_info | ||
) |
QMetaObject::~QMetaObject | ( | ) | [virtual] |
QMetaObject::QMetaObject | ( | const char *const | class_name, |
QMetaObject * | superclass, | ||
const QMetaData *const | slot_data, | ||
int | n_slots, | ||
const QMetaData *const | signal_data, | ||
int | n_signals, | ||
const QMetaProperty *const | prop_data, | ||
int | n_props, | ||
const QMetaEnum *const | enum_data, | ||
int | n_enums, | ||
const QClassInfo *const | class_info, | ||
int | n_info | ||
) |
QMetaObject::QMetaObject | ( | const char *const | class_name, |
QMetaObject * | superclass, | ||
const QMetaData *const | slot_data, | ||
int | n_slots, | ||
const QMetaData *const | signal_data, | ||
int | n_signals, | ||
const QMetaProperty *const | prop_data, | ||
int | n_props, | ||
const QMetaEnum *const | enum_data, | ||
int | n_enums, | ||
bool(*)(QObject *, int, int, QVariant *) | qt_static_property, | ||
const QClassInfo *const | class_info, | ||
int | n_info | ||
) |
virtual QMetaObject::~QMetaObject | ( | ) | [virtual] |
const QClassInfo * QMetaObject::classInfo | ( | int | index, |
bool | super = FALSE |
||
) | const |
Returns the class information with index index or 0 if no such information exists.
If super is TRUE, inherited class information is included.
const char * QMetaObject::classInfo | ( | const char * | name, |
bool | super = FALSE |
||
) | const |
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Returns the class information with name name or 0 if no such information exists.
If super is TRUE, inherited class information is included.
const QClassInfo* QMetaObject::classInfo | ( | int | index, |
bool | super = FALSE |
||
) | const |
const char* QMetaObject::classInfo | ( | const char * | name, |
bool | super = FALSE |
||
) | const |
const char * QMetaObject::className | ( | ) | const [inline] |
Returns the class name.
const char* QMetaObject::className | ( | ) | const [inline] |
Returns the index for the property with name name or -1 if no such property exists.
If super is TRUE, inherited properties are included.
static bool QMetaObject::hasMetaObject | ( | const char * | class_name | ) | [static] |
bool QMetaObject::hasMetaObject | ( | const char * | class_name | ) | [static] |
int QMetaObject::indexOfProperty | ( | const QMetaProperty * | prop, |
bool | super = FALSE |
||
) | const |
int QMetaObject::indexOfProperty | ( | const QMetaProperty * | , |
bool | super = FALSE |
||
) | const |
bool QMetaObject::inherits | ( | const char * | clname | ) | const |
Returns TRUE if this class inherits clname within the meta object inheritance chain; otherwise returns FALSE.
(A class is considered to inherit itself.)
bool QMetaObject::inherits | ( | const char * | clname | ) | const |
static QMetaObject* QMetaObject::metaObject | ( | const char * | class_name | ) | [static] |
QMetaObject * QMetaObject::metaObject | ( | const char * | class_name | ) | [static] |
QMetaObject * QMetaObject::new_metaobject | ( | const char * | classname, |
QMetaObject * | superclassobject, | ||
const QMetaData * const | slot_data, | ||
int | n_slots, | ||
const QMetaData * const | signal_data, | ||
int | n_signals, | ||
const QMetaProperty *const | prop_data, | ||
int | n_props, | ||
const QMetaEnum *const | enum_data, | ||
int | n_enums, | ||
const QClassInfo *const | class_info, | ||
int | n_info | ||
) | [static] |
QMetaObject * QMetaObject::new_metaobject | ( | const char * | classname, |
QMetaObject * | superclassobject, | ||
const QMetaData * const | slot_data, | ||
int | n_slots, | ||
const QMetaData * const | signal_data, | ||
int | n_signals, | ||
const QMetaProperty *const | prop_data, | ||
int | n_props, | ||
const QMetaEnum *const | enum_data, | ||
int | n_enums, | ||
bool(*)(QObject *, int, int, QVariant *) | qt_static_property, | ||
const QClassInfo *const | class_info, | ||
int | n_info | ||
) | [static] |
static QMetaObject* QMetaObject::new_metaobject | ( | const char * | , |
QMetaObject * | , | ||
const QMetaData * | const, | ||
int | , | ||
const QMetaData * | const, | ||
int | , | ||
const QMetaProperty *const | prop_data, | ||
int | n_props, | ||
const QMetaEnum *const | enum_data, | ||
int | n_enums, | ||
const QClassInfo *const | class_info, | ||
int | n_info | ||
) | [static] |
static QMetaObject* QMetaObject::new_metaobject | ( | const char * | , |
QMetaObject * | , | ||
const QMetaData * | const, | ||
int | , | ||
const QMetaData * | const, | ||
int | , | ||
const QMetaProperty *const | prop_data, | ||
int | n_props, | ||
const QMetaEnum *const | enum_data, | ||
int | n_enums, | ||
bool(*)(QObject *, int, int, QVariant *) | qt_static_property, | ||
const QClassInfo *const | class_info, | ||
int | n_info | ||
) | [static] |
Returns the number of items of class information available for this class.
If super is TRUE, inherited class information is included.
Returns the number of properties for this class.
If super is TRUE, inherited properties are included.
Returns the number of signals for this class.
If super is TRUE, inherited signals are included.
Returns the number of slots for this class.
If super is TRUE, inherited slots are included.
const QMetaProperty* QMetaObject::property | ( | int | index, |
bool | super = FALSE |
||
) | const |
const QMetaProperty * QMetaObject::property | ( | int | index, |
bool | super = FALSE |
||
) | const |
Returns the property meta data for the property at index index or 0 if no such property exists.
If super is TRUE, inherited properties are included.
Returns a list with the names of all this class's properties.
If super is TRUE, inherited properties are included.
int QMetaObject::propertyOffset | ( | ) | const |
int QMetaObject::propertyOffset | ( | ) | const [inline] |
const QMetaProperty* QMetaObject::resolveProperty | ( | const QMetaProperty * | ) | const |
const QMetaProperty * QMetaObject::resolveProperty | ( | const QMetaProperty * | p | ) | const |
Returns a list with the names of all this class's signals.
If super is TRUE, inherited signals are included.
int QMetaObject::signalOffset | ( | ) | const |
int QMetaObject::signalOffset | ( | ) | const [inline] |
Returns a list with the names of all this class's slots.
If super is TRUE, inherited slots are included.
int QMetaObject::slotOffset | ( | ) | const |
int QMetaObject::slotOffset | ( | ) | const [inline] |
QMetaObject * QMetaObject::superClass | ( | ) | const [inline] |
Returns the meta object of the super class or 0 if there is no such object.
QMetaObject* QMetaObject::superClass | ( | ) | const [inline] |
const char * QMetaObject::superClassName | ( | ) | const [inline] |
Returns the class name of the superclass or 0 if there is no superclass in the QObject hierachy.
const char* QMetaObject::superClassName | ( | ) | const [inline] |
QMetaProperty [friend] |