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

📄 qmetaobject.3qt

📁 Linux下的基于X11的图形开发环境。
💻 3QT
字号:
'\" t.TH QMetaObject 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 NAMEQMetaObject \- Meta information about Qt objects.SH SYNOPSIS\fC#include <qmetaobject.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "const char * \fBclassName\fR () const".br.ti -1c.BI "const char * \fBsuperClassName\fR () const".br.ti -1c.BI "QMetaObject * \fBsuperClass\fR () const".br.ti -1c.BI "bool \fBinherits\fR ( const char * clname ) const".br.ti -1c.BI "int \fBnumSlots\fR ( bool super = FALSE ) const".br.ti -1c.BI "int \fBnumSignals\fR ( bool super = FALSE ) const".br.ti -1c.BI "QStrList \fBslotNames\fR ( bool super = FALSE ) const".br.ti -1c.BI "QStrList \fBsignalNames\fR ( bool super = FALSE ) const".br.ti -1c.BI "int \fBnumClassInfo\fR ( bool super = FALSE ) const".br.ti -1c.BI "const QClassInfo * \fBclassInfo\fR ( int index, bool super = FALSE ) const".br.ti -1c.BI "const char * \fBclassInfo\fR ( const char * name, bool super = FALSE ) const".br.ti -1c.BI "const QMetaProperty * \fBproperty\fR ( int index, bool super = FALSE ) const".br.ti -1c.BI "int \fBfindProperty\fR ( const char * name, bool super = FALSE ) const".br.ti -1c.BI "QStrList \fBpropertyNames\fR ( bool super = FALSE ) const".br.ti -1c.BI "int \fBnumProperties\fR ( bool super = FALSE ) const".br.in -1c.SH DESCRIPTIONThe QMetaObject class contains meta information about Qt objects..PPThe Meta Object System in Qt is responsible for the signals and slots inter-object communication mechanism, runtime type information and the property system. All meta information in Qt is kept in a single instance of QMetaObject per class..PPThis class is not normally required for application programming. But if you write meta applications, such as scripting engines or GUI builders, you might find these functions useful:.TPclassName() to get the name of a class..TPsuperClassName() to get the name of the superclass..TPinherits(), the function called by QObject::inherits()..TPsuperClass() to access the superclass's meta object..TPnumSlots(), numSignals(), slotNames(), and signalNames() to get information about a class's signals and slots..TPproperty() and propertyNames() to obtain information about a class's properties..PPClasses may have a list of name-value pairs of class information. The number of pairs is returned by numClassInfo(), and values are returned by classInfo()..PPSee also moc (Meta Object Compiler) and Object Model..PP.SH MEMBER FUNCTION DOCUMENTATION.SH "const QClassInfo * QMetaObject::classInfo ( int index, bool super = FALSE ) const"Returns the class information with index \fIindex\fR or 0 if no such information exists..PPIf \fIsuper\fR is TRUE, inherited class information is included..SH "const char * QMetaObject::classInfo ( const char * name, bool super = FALSE ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the class information with name \fIname\fR or 0 if no such information exists..PPIf \fIsuper\fR is TRUE, inherited class information is included..SH "const char * QMetaObject::className () const"Returns the class name..PPSee also QObject::className() and superClassName()..SH "int QMetaObject::findProperty ( const char * name, bool super = FALSE ) const"Returns the index for the property with name \fIname\fR or -1 if no such property exists..PPIf \fIsuper\fR is TRUE, inherited properties are included..PPSee also property() and propertyNames()..SH "bool QMetaObject::inherits ( const char * clname ) const"Returns TRUE if this class inherits \fIclname\fR within the meta object inheritance chain; otherwise returns FALSE..PP(A class is considered to inherit itself.).SH "int QMetaObject::numClassInfo ( bool super = FALSE ) const"Returns the number of items of class information available for this class..PPIf \fIsuper\fR is TRUE, inherited class information is included..SH "int QMetaObject::numProperties ( bool super = FALSE ) const"Returns the number of properties for this class..PPIf \fIsuper\fR is TRUE, inherited properties are included..PPSee also propertyNames()..SH "int QMetaObject::numSignals ( bool super = FALSE ) const"Returns the number of signals for this class..PPIf \fIsuper\fR is TRUE, inherited signals are included..PPSee also signalNames()..SH "int QMetaObject::numSlots ( bool super = FALSE ) const"Returns the number of slots for this class..PPIf \fIsuper\fR is TRUE, inherited slots are included..PPSee also slotNames()..SH "const QMetaProperty * QMetaObject::property ( int index, bool super = FALSE ) const"Returns the property meta data for the property at index \fIindex\fR or 0 if no such property exists..PPIf \fIsuper\fR is TRUE, inherited properties are included..PPSee also propertyNames()..SH "QStrList QMetaObject::propertyNames ( bool super = FALSE ) const"Returns a list with the names of all this class's properties..PPIf \fIsuper\fR is TRUE, inherited properties are included..PPSee also property()..SH "QStrList QMetaObject::signalNames ( bool super = FALSE ) const"Returns a list with the names of all this class's signals..PPIf \fIsuper\fR is TRUE, inherited signals are included..SH "QStrList QMetaObject::slotNames ( bool super = FALSE ) const"Returns a list with the names of all this class's slots..PPIf \fIsuper\fR is TRUE, inherited slots are included..PPSee also numSlots()..SH "QMetaObject * QMetaObject::superClass () const"Returns the meta object of the super class or 0 if there is no such object..SH "const char * QMetaObject::superClassName () const"Returns the class name of the superclass or 0 if there is no superclass in the QObject hierachy..PPSee also className()..SH "SEE ALSO".BR http://doc.trolltech.com/qmetaobject.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 (qmetaobject.3qt) and the Qtversion (3.1.1).

⌨️ 快捷键说明

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