以下成员源于类 QObject are part of the Qt compatibility layer. We advise against using them in new code.
| QObject * | child (const char * objName , const char * inheritsClass = 0, bool recursiveSearch = true) const |
| const char * | className () const |
| void | insertChild (QObject * object ) |
| bool | isA (const char * className ) const |
| const char * | name () const |
| const char * | name (const char * defaultName ) const |
| void | removeChild (QObject * object ) |
| void | setName (const char * name ) |
| bool | checkConnectArgs (const char * signal , const QObject * object , const char * method ) |
| QByteArray | normalizeSignalSlot (const char * signalSlot ) |
[protected]
bool
QObject::
checkConnectArgs
(const
char
*
signal
, const
QObject
*
object
, const
char
*
method
)
使用 QMetaObject::checkConnectArgs () 代替。
Searches the children and optionally grandchildren of this object, and returns a child that is called objName that inherits inheritsClass 。若 inheritsClass is 0 (the default), any class matches.
若 recursiveSearch is true (the default), child() performs a depth-first search of the object's children.
If there is no such object, this function returns 0. If there are more than one, the first one found is returned.
使用 metaObject ()->className() instead.
使用 setParent () instead, i.e., call object-> setParent (this).
比较 className with the object's metaObject ()-> className () 代替。
使用 objectName () 代替。
另请参阅 setName ().
使用 objectName () 代替。
[static protected]
QByteArray
QObject::
normalizeSignalSlot
(const
char
*
signalSlot
)
使用 QMetaObject::normalizedSignature () 代替。
使用 setParent () instead, i.e., call object-> setParent (0).
使用 setObjectName () 代替。
另请参阅 name ().