Obsolete Members for QObject

The following members of class QObject are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) QObject(QObject * parent, const char * name)

Related Non-Members

(obsolete) T qFindChild(const QObject * obj, const QString & name = QString())
(obsolete) QList<T> qFindChildren(const QObject * obj, const QString & name = QString())

Member Function Documentation

QObject::QObject(QObject * parent, const char * name)

This function overloads QObject().

Creates a new QObject with the given parent and object name.

Related Non-Members

T qFindChild(const QObject * obj, const QString & name = QString())

This function overloads qFindChildren().

This function is equivalent to obj->findChild<T>(name).

Note: This function was provided as a workaround for MSVC 6 which did not support member template functions. It is advised to use the other form in new code.

See also QObject::findChild().

QList<T> qFindChildren(const QObject * obj, const QString & name = QString())

This function overloads qFindChildren().

This function is equivalent to obj->findChildren<T>(name).

Note: This function was provided as a workaround for MSVC 6 which did not support member template functions. It is advised to use the other form in new code.

See also QObject::findChildren().

© 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.