Homepage > Man Pages > Category > Subroutines
Homepage > Man Pages > Name > Q

qmetaproperty

man page of qmetaproperty

qmetaproperty: Stores meta data about a property

NAME

QMetaProperty - Stores meta data about a property
SYNOPSIS
#include <qmetaobject.h> Public Members const char * type () const const char * name () const bool writable () 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 * o = 0 ) const bool scriptable ( QObject * o = 0 ) const bool stored ( QObject * o = 0 ) const bool reset ( QObject * o ) const
DESCRIPTION
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.

MEMBER FUNCTION DOCUMENTATION

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.

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 TRUE if the property's type is an enumeration value; otherwise returns FALSE. See also isSetType() and enumKeys().
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. 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 (OR-ed) integer value. See also isSetType() and valueToKey().

CONST CHAR * QMETAPROPERTY::NAME () CONST

Returns the name of the property.

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 * 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::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.
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 isSetType() and valueToKeys().

QSTRLIST QMETAPROPERTY::VALUETOKEYS ( INT VALUE ) CONST

Converts the set value value to a list of keys. See also isSetType() and valueToKey().

BOOL QMETAPROPERTY::WRITABLE () CONST

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

SEE ALSO

//doc.trolltech.com/qmetaproperty.html //www.trolltech.com/faq/tech.html
COPYRIGHT
Copyright 1992-2007 Trolltech ASA, //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 //doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in 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 (3.3.8). QMETAPROPERTY(3)
 
 
 

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.
Contact · Imprint · Privacy

Page generated in 27.94ms.

doomsdaydude.com | brauchbar.de | amazing-wings.de