QMetaProperty(3qt)

NAME
QMetaProperty - Stores meta data about a property

#include <qmetaobject.h>

  Public Members
QMetaProperty () (internal)
~QMetaProperty () (internal)
const char* type () const
const char* name () const
bool writable () const
bool writeable () const
bool isValid () const (internal)
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 stored ( QObject * ) const
bool designable () const
enum Specification { Unspecified, Class, Reference, Pointer, ConstCharStar }
enum Flags { UnresolvedEnum = 0x00000001, UnresolvedSet = 0x00000002, UnresolvedEnumOrSet = 0x00000004, UnresolvedStored = 0x00000008, UnresolvedDesignable = 0x00000010, NotDesignable = 0x00000020, NotStored = 0x00000040, StdSet = 0x00000080 }
bool testFlags ( uint f ) const
void setFlags ( uint f )
void clearFlags ( uint f )

DESCRIPTION
The QMetaProperty class stores meta data about a property.

Property meta data mainly consists of a type(), a name() and the fact, whether a property is writable(), designable() or stored().

The functions isSetType(), isEnumType() and enumKeys() provide further information about a property's type. The conversion functions keyToValue(), valueToKey(), keysToValue() and valueToKeys() allow to convert 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.

  Member Type Documentation

QMetaProperty::Flags
For internal use only.

QMetaProperty::Specification
For internal use only.

MEMBER FUNCTION DOCUMENTATION

void QMetaProperty::clearFlags ( uint f )
For internal use only.

bool QMetaProperty::designable () const
Returns whether the property is considered to be designable or not.

QStrList QMetaProperty::enumKeys () const
Returns the possible enumeration keys if this property is an enumeration type (or a set type).

See also isEnumType().

bool QMetaProperty::isEnumType () const
Returns whether the property's type is an enumeration value.

See also isSetType() and enumKeys().

bool QMetaProperty::isSetType () const
Returns whether the property's type is an enumeration value that is used as set, i.e. the enumeration values can be or'ed together. A set type is implicitely also an enum type.

See also isEnumType() and enumKeys().

int QMetaProperty::keyToValue ( const char * key ) const
Converts the enumeration key key to its integer value.

For set types, use keysToValue().

See also valueToKey(), isSetType() and keysToValue().

int QMetaProperty::keysToValue ( const QStrList & keys ) const
Converts the list of keys keys to their combined integer value.

See also isSetType(), valueToKey() and keysToValue().

const char* QMetaProperty::name () const
Returns the name of the property.

void QMetaProperty::setFlags ( uint f )
For internal use only.

bool QMetaProperty::stored ( QObject * o ) const
Returns whether the property shall be stored for object o or not.

bool QMetaProperty::testFlags ( uint f ) const
For internal use only.

const char* QMetaProperty::type () const
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().

See also valueToKey(), isSetType() and valueToKeys().

QStrList QMetaProperty::valueToKeys ( int value ) const
Converts the set value value to a list of keys.

See also isSetType(), valueToKey() and valueToKeys().

bool QMetaProperty::writable () const
Returns whether the property is writable or not.

See also isValid().

QMetaProperty::QMetaProperty ()
For internal use only.

QMetaProperty::~QMetaProperty ()
For internal use only.

bool QMetaProperty::isValid () const
For internal use only.

SEE ALSO
http://doc.trolltech.com/qmetaproperty.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports make our job much simpler. Thank you.

In case of content or formattting problems with this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qmetaproperty.3qt) and the Qt version (2.3.5).