Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos públicos estáticos | Amigas
Referencia de la Clase QMetaObject

The QMetaObject class contains meta information about Qt objects. Más...

#include <qmetaobject.h>

Lista de todos los miembros.

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
QMetaObjectsuperClass () 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 QMetaDataslot (int index, bool super=FALSE) const
const QMetaDatasignal (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 QClassInfoclassInfo (int index, bool super=FALSE) const
const char * classInfo (const char *name, bool super=FALSE) const
const QMetaPropertyproperty (int index, bool super=FALSE) const
int findProperty (const char *name, bool super=FALSE) const
int indexOfProperty (const QMetaProperty *, bool super=FALSE) const
const QMetaPropertyresolveProperty (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 QMetaEnumenumerator (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
QMetaObjectsuperClass () 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 QMetaDataslot (int index, bool super=FALSE) const
const QMetaDatasignal (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 QClassInfoclassInfo (int index, bool super=FALSE) const
const char * classInfo (const char *name, bool super=FALSE) const
const QMetaPropertyproperty (int index, bool super=FALSE) const
int findProperty (const char *name, bool super=FALSE) const
int indexOfProperty (const QMetaProperty *, bool super=FALSE) const
const QMetaPropertyresolveProperty (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 QMetaEnumenumerator (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 QMetaObjectnew_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 QMetaObjectnew_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 QMetaObjectmetaObject (const char *class_name)
static bool hasMetaObject (const char *class_name)
static QMetaObjectnew_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 QMetaObjectnew_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 QMetaObjectmetaObject (const char *class_name)
static bool hasMetaObject (const char *class_name)

Amigas

class QMetaProperty

Descripción detallada

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().

Ver también:
moc (Meta Object Compiler)

Documentación del constructor y destructor

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]

Documentación de las funciones miembro

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.

Ver también:
QObject::className(), superClassName()
const char* QMetaObject::className ( ) const [inline]
const QMetaEnum * QMetaObject::enumerator ( const char *  name,
bool  super = FALSE 
) const
const QMetaEnum* QMetaObject::enumerator ( const char *  name,
bool  super = FALSE 
) const
QStrList QMetaObject::enumeratorNames ( bool  super = FALSE) const
QStrList QMetaObject::enumeratorNames ( bool  super = FALSE) const
int QMetaObject::findProperty ( const char *  name,
bool  super = FALSE 
) const

Returns the index for the property with name name or -1 if no such property exists.

If super is TRUE, inherited properties are included.

Ver también:
property(), propertyNames()
int QMetaObject::findProperty ( const char *  name,
bool  super = FALSE 
) const
int QMetaObject::findSignal ( const char *  n,
bool  super = FALSE 
) const
int QMetaObject::findSignal ( const char *  ,
bool  super = FALSE 
) const
int QMetaObject::findSlot ( const char *  ,
bool  super = FALSE 
) const
int QMetaObject::findSlot ( const char *  n,
bool  super = FALSE 
) const
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]
int QMetaObject::numClassInfo ( bool  super = FALSE) const

Returns the number of items of class information available for this class.

If super is TRUE, inherited class information is included.

int QMetaObject::numClassInfo ( bool  super = FALSE) const
int QMetaObject::numEnumerators ( bool  super = FALSE) const
int QMetaObject::numEnumerators ( bool  super = FALSE) const
int QMetaObject::numProperties ( bool  super = FALSE) const

Returns the number of properties for this class.

If super is TRUE, inherited properties are included.

Ver también:
propertyNames()
int QMetaObject::numProperties ( bool  super = FALSE) const
int QMetaObject::numSignals ( bool  super = FALSE) const
int QMetaObject::numSignals ( bool  super = FALSE) const

Returns the number of signals for this class.

If super is TRUE, inherited signals are included.

Ver también:
signalNames()
int QMetaObject::numSlots ( bool  super = FALSE) const
int QMetaObject::numSlots ( bool  super = FALSE) const

Returns the number of slots for this class.

If super is TRUE, inherited slots are included.

Ver también:
slotNames()
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.

Ver también:
propertyNames()
QStrList QMetaObject::propertyNames ( bool  super = FALSE) const

Returns a list with the names of all this class's properties.

If super is TRUE, inherited properties are included.

Ver también:
property()
QStrList QMetaObject::propertyNames ( bool  super = FALSE) const
int QMetaObject::propertyOffset ( ) const
int QMetaObject::propertyOffset ( ) const [inline]
bool QMetaObject::qt_static_property ( QObject o,
int  id,
int  f,
QVariant v 
)
bool QMetaObject::qt_static_property ( QObject o,
int  id,
int  f,
QVariant v 
)
int QMetaObject::resolveProperty ( int  index) const
int QMetaObject::resolveProperty ( int  ) const
const QMetaProperty* QMetaObject::resolveProperty ( const QMetaProperty ) const
const QMetaProperty * QMetaObject::resolveProperty ( const QMetaProperty p) const
const QMetaData* QMetaObject::signal ( int  index,
bool  super = FALSE 
) const
const QMetaData * QMetaObject::signal ( int  index,
bool  super = FALSE 
) const
QStrList QMetaObject::signalNames ( bool  super = FALSE) const
QStrList QMetaObject::signalNames ( bool  super = FALSE) 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]
const QMetaData* QMetaObject::slot ( int  index,
bool  super = FALSE 
) const
const QMetaData * QMetaObject::slot ( int  index,
bool  super = FALSE 
) const
QStrList QMetaObject::slotNames ( bool  super = FALSE) const

Returns a list with the names of all this class's slots.

If super is TRUE, inherited slots are included.

Ver también:
numSlots()
QStrList QMetaObject::slotNames ( bool  super = FALSE) const
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.

Ver también:
className()
const char* QMetaObject::superClassName ( ) const [inline]

Documentación de las funciones relacionadas y clases amigas

QMetaProperty [friend]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'