The QMetaProperty class stores meta data about a property. More...
#include <qmetaobject.h>
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.
For internal use only.
Returns whether the property is considered to be designable or not.
Returns the possible enumeration keys if this property is an enumeration type (or a set type).
See also isEnumType().
Returns whether the property's type is an enumeration value.
See also isSetType() and enumKeys().
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().
Converts the enumeration key key to its integer value.
For set types, use keysToValue().
See also valueToKey(), isSetType() and keysToValue().
Converts the list of keys keys to their combined integer value.
See also isSetType(), valueToKey() and keysToValue().
Returns the name of the property.
For internal use only.
Returns whether the property shall be stored for object o or not.
For internal use only.
Returns the type of the property.
Converts the enumeration value value to its literal key.
For set types, use valueToKeys().
See also valueToKey(), isSetType() and valueToKeys().
Converts the set value value to a list of keys.
See also isSetType(), valueToKey() and valueToKeys().
Returns whether the property is writable or not.
See also isValid().
For internal use only.
For internal use only.
For internal use only.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.
Copyright © 2000 Trolltech | Trademarks | Qt version 2.2.1
|