Compatibility Members for QObject
The following members of class QObjectare part of the Qt compatibility layer. We advise against using them in new code.
Public Functions
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) |
Protected Functions
bool | checkConnectArgs(const char * signal, const QObject * object, const char * method) |
Static Protected Members
QByteArray | normalizeSignalSlot(const char * signalSlot) |
Member Function Documentation
[protected]
bool QObject::checkConnectArgs(const char * signal, const QObject * object, const char * method)
Use QMetaObject::checkConnectArgs() instead.
QObject * QObject::child(const char * objName, const char * inheritsClass = 0, bool recursiveSearch = true) const
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.
const char * QObject::className() const
Use metaObject()->className() instead.
void QObject::insertChild(QObject * object)
Use setParent() instead, i.e., call object->setParent(this).
bool QObject::isA(const char * className) const
Compare className with the object's metaObject()->className() instead.
const char * QObject::name() const
Use objectName() instead.
See also setName().
const char * QObject::name(const char * defaultName) const
Use objectName() instead.
[static protected]
QByteArray QObject::normalizeSignalSlot(const char * signalSlot)
Use QMetaObject::normalizedSignature() instead.
void QObject::removeChild(QObject * object)
Use setParent() instead, i.e., call object->setParent(0).
void QObject::setName(const char * name)
Use setObjectName() instead.
See also name().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.