Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The QMetaProperty class stores meta data about a property. More...
#include <qmetaobject.h>
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.
See also Object Model.
See also isEnumType().
Returns TRUE if the property's type is an enumeration value; otherwise returns FALSE.
See also isSetType() and enumKeys().
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.
See also isEnumType() and enumKeys().
For set types, use keysToValue().
See also valueToKey(), isSetType() and keysToValue().
See also isSetType() and valueToKey().
Returns the name of the property.
Reset methods are optional, usually only a few properties support them.
Returns the type of the property.
For set types, use valueToKeys().
See also isSetType() and valueToKeys().
See also isSetType() and valueToKey().
Returns TRUE if the property is writable; otherwise returns FALSE.
This file is part of the Qt toolkit. Copyright © 1995-2002 Trolltech. All Rights Reserved.
Copyright © 2002 Trolltech | Trademarks | Qt version 3.0.4
|