⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qmetaproperty.3qt

📁 Linux下的基于X11的图形开发环境。
💻 3QT
字号:
'\" t.TH QMetaProperty 3qt "9 December 2002" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQMetaProperty \- Stores meta data about a property.SH SYNOPSIS\fC#include <qmetaobject.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "const char * \fBtype\fR () const".br.ti -1c.BI "const char * \fBname\fR () const".br.ti -1c.BI "bool \fBwritable\fR () const".br.ti -1c.BI "bool \fBisSetType\fR () const".br.ti -1c.BI "bool \fBisEnumType\fR () const".br.ti -1c.BI "QStrList \fBenumKeys\fR () const".br.ti -1c.BI "int \fBkeyToValue\fR ( const char * key ) const".br.ti -1c.BI "const char * \fBvalueToKey\fR ( int value ) const".br.ti -1c.BI "int \fBkeysToValue\fR ( const QStrList & keys ) const".br.ti -1c.BI "QStrList \fBvalueToKeys\fR ( int value ) const".br.ti -1c.BI "bool \fBdesignable\fR ( QObject * o = 0 ) const".br.ti -1c.BI "bool \fBscriptable\fR ( QObject * o = 0 ) const".br.ti -1c.BI "bool \fBstored\fR ( QObject * o = 0 ) const".br.ti -1c.BI "bool \fBreset\fR ( QObject * o ) const".br.in -1c.SH DESCRIPTIONThe QMetaProperty class stores meta data about a property..PPProperty meta data includes type(), name(), and whether a property is writable(), designable() and stored()..PPThe 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..PPActual property values are set and received through QObject's set and get functions. See QObject::setProperty() and QObject::property() for details..PPYou receive meta property data through an object's meta object. See QMetaObject::property() and QMetaObject::propertyNames() for details..PPSee also Object Model..SH MEMBER FUNCTION DOCUMENTATION.SH "bool QMetaProperty::designable ( QObject * o = 0 ) const"Returns TRUE if the property is designable for object \fIo\fR; otherwise returns FALSE..PPIf no object \fIo\fR is given, the function returns a static approximation..SH "QStrList QMetaProperty::enumKeys () const"Returns the possible enumeration keys if this property is an enumeration type (or a set type)..PPSee also isEnumType()..SH "bool QMetaProperty::isEnumType () const"Returns TRUE if the property's type is an enumeration value; otherwise returns FALSE..PPSee also isSetType() and enumKeys()..SH "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..PPSee also isEnumType() and enumKeys()..SH "int QMetaProperty::keyToValue ( const char * key ) const"Converts the enumeration key \fIkey\fR to its integer value..PPFor set types, use keysToValue()..PPSee also valueToKey(), isSetType(), and keysToValue()..SH "int QMetaProperty::keysToValue ( const QStrList & keys ) const"Converts the list of keys \fIkeys\fR to their combined (OR-ed) integer value..PPSee also isSetType() and valueToKey()..SH "const char * QMetaProperty::name () const"Returns the name of the property..SH "bool QMetaProperty::reset ( QObject * o ) const"Tries to reset the property for object \fIo\fR with a reset method. On success, returns TRUE; otherwise returns FALSE..PPReset methods are optional, usually only a few properties support them..SH "bool QMetaProperty::scriptable ( QObject * o = 0 ) const"Returns TRUE if the property is scriptable for object \fIo\fR; otherwise returns FALSE..PPIf no object \fIo\fR is given, the function returns a static approximation..SH "bool QMetaProperty::stored ( QObject * o = 0 ) const"Returns TRUE if the property shall be stored for object \fIo\fR; otherwise returns FALSE..PPIf no object \fIo\fR is given, the function returns a static approximation..SH "const char * QMetaProperty::type () const"Returns the type of the property..SH "const char * QMetaProperty::valueToKey ( int value ) const"Converts the enumeration value \fIvalue\fR to its literal key..PPFor set types, use valueToKeys()..PPSee also isSetType() and valueToKeys()..SH "QStrList QMetaProperty::valueToKeys ( int value ) const"Converts the set value \fIvalue\fR to a list of keys..PPSee also isSetType() and valueToKey()..SH "bool QMetaProperty::writable () const"Returns TRUE if the property is writable; otherwise returns FALSE..PP.SH "SEE ALSO".BR http://doc.trolltech.com/qmetaproperty.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qmetaproperty.3qt) and the Qtversion (3.1.1).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -