The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
QObject ( QObject * parent, const char * name ) | |
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 ) |
This function overloads QObject().
Creates a new QObject with the given parent and object name.
Use QMetaObject::checkConnectArgs() instead.
Searches the children and optionally grandchildren of this object, and returns a child that is called objName that inherits inheritsClass. If inheritsClass is 0 (the default), any class matches.
If 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.
Use metaObject()->className() instead.
Use setParent() instead, i.e., call object->setParent(this).
Compare className with the object's metaObject()->className() instead.
Use objectName() instead.
See also setName().
Use objectName() instead.
Use QMetaObject::normalizedSignature() instead.
Use setParent() instead, i.e., call object->setParent(0).
Use setObjectName() instead.
See also name().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.