Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos | Atributos públicos
Referencia de la Clase QMetaProperty

The QMetaProperty class stores meta data about a property. Más...

#include <qmetaobject.h>

Lista de todos los miembros.

Tipos públicos

enum  Flags {
  Invalid = 0x00000000, Readable = 0x00000001, Writable = 0x00000002, EnumOrSet = 0x00000004,
  UnresolvedEnum = 0x00000008, StdSet = 0x00000100, Override = 0x00000200, Invalid = 0x00000000,
  Readable = 0x00000001, Writable = 0x00000002, EnumOrSet = 0x00000004, UnresolvedEnum = 0x00000008,
  StdSet = 0x00000100, Override = 0x00000200
}
enum  Flags {
  Invalid = 0x00000000, Readable = 0x00000001, Writable = 0x00000002, EnumOrSet = 0x00000004,
  UnresolvedEnum = 0x00000008, StdSet = 0x00000100, Override = 0x00000200, Invalid = 0x00000000,
  Readable = 0x00000001, Writable = 0x00000002, EnumOrSet = 0x00000004, UnresolvedEnum = 0x00000008,
  StdSet = 0x00000100, Override = 0x00000200
}

Métodos públicos

const char * type () const
const char * name () const
bool writable () const
bool isValid () const
bool isSetType () const
bool isEnumType () const
QStrList enumKeys () const
int keyToValue (const char *key) const
const char * valueToKey (int value) const
int keysToValue (const QStrList &keys) const
QStrList valueToKeys (int value) const
bool designable (QObject *=0) const
bool scriptable (QObject *=0) const
bool stored (QObject *=0) const
bool reset (QObject *) const
bool testFlags (uint f) const
bool stdSet () const
int id () const
void clear ()
const char * type () const
const char * name () const
bool writable () const
bool isValid () const
bool isSetType () const
bool isEnumType () const
QStrList enumKeys () const
int keyToValue (const char *key) const
const char * valueToKey (int value) const
int keysToValue (const QStrList &keys) const
QStrList valueToKeys (int value) const
bool designable (QObject *=0) const
bool scriptable (QObject *=0) const
bool stored (QObject *=0) const
bool reset (QObject *) const
bool testFlags (uint f) const
bool stdSet () const
int id () const
void clear ()

Atributos públicos

const char * t
const char * n
uint flags
QMetaObject ** meta
const QMetaEnumenumData
int _id

Descripción detallada

The QMetaProperty class stores meta data about a property.

Property meta data includes type(), name(), and whether a property is writable(), designable() and stored().

The functions isSetType(), isEnumType() and enumKeys() provide further information about a property's type. The conversion functions keyToValue(), valueToKey(), keysToValue() and valueToKeys() allow conversion between the integer representation of an enumeration or set value and its literal representation.

Actual property values are set and received through QObject's set and get functions. See QObject::setProperty() and QObject::property() for details.

You receive meta property data through an object's meta object. See QMetaObject::property() and QMetaObject::propertyNames() for details.


Documentación de las enumeraciones miembro de la clase

Valores de enumeraciones:
Invalid 
Readable 
Writable 
EnumOrSet 
UnresolvedEnum 
StdSet 
Override 
Invalid 
Readable 
Writable 
EnumOrSet 
UnresolvedEnum 
StdSet 
Override 
Valores de enumeraciones:
Invalid 
Readable 
Writable 
EnumOrSet 
UnresolvedEnum 
StdSet 
Override 
Invalid 
Readable 
Writable 
EnumOrSet 
UnresolvedEnum 
StdSet 
Override 

Documentación de las funciones miembro

void QMetaProperty::clear ( void  )
void QMetaProperty::clear ( )
bool QMetaProperty::designable ( QObject o = 0) const

Returns TRUE if the property is designable for object o; otherwise returns FALSE.

If no object o is given, the function returns a static approximation.

bool QMetaProperty::designable ( QObject = 0) const
QStrList QMetaProperty::enumKeys ( ) const
QStrList QMetaProperty::enumKeys ( ) const

Returns the possible enumeration keys if this property is an enumeration type (or a set type).

Ver también:
isEnumType()
int QMetaProperty::id ( ) const
int QMetaProperty::id ( ) const
bool QMetaProperty::isEnumType ( ) const
bool QMetaProperty::isEnumType ( ) const

Returns TRUE if the property's type is an enumeration value; otherwise returns FALSE.

Ver también:
isSetType(), enumKeys()
bool QMetaProperty::isSetType ( ) const
bool QMetaProperty::isSetType ( ) const

Returns TRUE if the property's type is an enumeration value that is used as set, i.e. if the enumeration values can be OR-ed together; otherwise returns FALSE. A set type is implicitly also an enum type.

Ver también:
isEnumType(), enumKeys()
bool QMetaProperty::isValid ( void  ) const
bool QMetaProperty::isValid ( ) const
int QMetaProperty::keysToValue ( const QStrList keys) const

Converts the list of keys keys to their combined (OR-ed) integer value.

Ver también:
isSetType(), valueToKey(), keysToValue()
int QMetaProperty::keysToValue ( const QStrList keys) const
int QMetaProperty::keyToValue ( const char *  key) const

Converts the enumeration key key to its integer value.

For set types, use keysToValue().

Ver también:
valueToKey(), isSetType(), keysToValue()
int QMetaProperty::keyToValue ( const char *  key) const
const char * QMetaProperty::name ( ) const [inline]

Returns the name of the property.

const char* QMetaProperty::name ( ) const [inline]
bool QMetaProperty::reset ( QObject ) const
bool QMetaProperty::reset ( QObject o) const

Tries to reset the property for object o with a reset method. On success, returns TRUE; otherwise returns FALSE.

Reset methods are optional, usually only a few properties support them.

bool QMetaProperty::scriptable ( QObject = 0) const
bool QMetaProperty::scriptable ( QObject o = 0) const

Returns TRUE if the property is scriptable for object o; otherwise returns FALSE.

If no object o is given, the function returns a static approximation.

bool QMetaProperty::stdSet ( ) const
bool QMetaProperty::stdSet ( ) const
bool QMetaProperty::stored ( QObject = 0) const
bool QMetaProperty::stored ( QObject o = 0) const

Returns TRUE if the property shall be stored for object o; otherwise returns FALSE.

If no object o is given, the function returns a static approximation.

bool QMetaProperty::testFlags ( uint  f) const [inline]
bool QMetaProperty::testFlags ( uint  f) const
const char* QMetaProperty::type ( ) const [inline]
const char * QMetaProperty::type ( ) const [inline]

Returns the type of the property.

const char * QMetaProperty::valueToKey ( int  value) const

Converts the enumeration value value to its literal key.

For set types, use valueToKeys().

Ver también:
valueToKey(), isSetType(), valueToKeys()
const char* QMetaProperty::valueToKey ( int  value) const
QStrList QMetaProperty::valueToKeys ( int  value) const
QStrList QMetaProperty::valueToKeys ( int  value) const

Converts the set value value to a list of keys.

Ver también:
isSetType(), valueToKey(), valueToKeys()
bool QMetaProperty::writable ( ) const

Returns TRUE if the property is writable; otherwise returns FALSE.

bool QMetaProperty::writable ( ) const

Documentación de los datos miembro

const char * QMetaProperty::n
const char * QMetaProperty::t

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'