Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The TQMetaProperty class stores meta data about a property. More...
#include <tqmetaobject.h>
The TQMetaProperty 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 TQObject's set and get functions. See TQObject::setProperty() and TQObject::property() for details.
You receive meta property data through an object's meta object. See TQMetaObject::property() and TQMetaObject::propertyNames() for details.
See also Object Model.
If no object o is given, the function returns a static approximation.
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.
If no object o is given, the function returns a static approximation.
If no object o is given, the function returns a static approximation.
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 TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.
Copyright © 2007 Trolltech | Trademarks | TQt 3.3.8
|