QtBase
v6.3.1
|
#include <QtCore/qobjectdefs.h>
#include <QtCore/qstring.h>
#include <QtCore/qbytearray.h>
#include <QtCore/qlist.h>
#include <QtCore/qscopedpointer.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qobject_impl.h>
#include <QtCore/qbindingstorage.h>
Go to the source code of this file.
Classes | |
class | QObjectData |
class | QObject |
The QObject class is the base class of all Qt objects. More... | |
class | QSignalBlocker |
Exception-safe wrapper around QObject::blockSignals(). More... | |
Namespaces | |
QtPrivate | |
Macros | |
#define | Q_DECLARE_INTERFACE(IFace, IId) |
#define | Q_SET_OBJECT_NAME(obj) QT_PREPEND_NAMESPACE(QtPrivate)::deref_for_methodcall(obj).setObjectName(QLatin1String(#obj)) |
Typedefs | |
typedef QList< QObject * > | QObjectList |
#define Q_DECLARE_INTERFACE | ( | IFace, | |
IId | |||
) |
#define Q_SET_OBJECT_NAME | ( | obj | ) | QT_PREPEND_NAMESPACE(QtPrivate)::deref_for_methodcall(obj).setObjectName(QLatin1String(#obj)) |
|
related |
|
inline |
|
inline |
\variable QObject::staticMetaObject
This variable stores the meta-object for the class.
A meta-object contains information about a class that inherits QObject, e.g. class name, superclass name, properties, signals and slots. Every class that contains the Q_OBJECT macro will also have a meta-object.
The meta-object information is required by the signal/slot connection mechanism and the property system. The inherits() function also makes use of the meta-object.
If you have a pointer to an object, you can use metaObject() to retrieve the meta-object associated with that object.
Example:
|
inline |
|
constexprdelete |
Q_CORE_EXPORT QObject* qt_qFindChild_helper | ( | const QObject * | parent, |
const QString & | name, | ||
const QMetaObject & | mo, | ||
Qt::FindChildOptions | options | ||
) |
Definition at line 2087 of file qobject.cpp.
Q_CORE_EXPORT void qt_qFindChildren_helper | ( | const QObject * | parent, |
const QMetaObject & | mo, | ||
QList< void * > * | list, | ||
Qt::FindChildOptions | options | ||
) |
Definition at line 2050 of file qobject.cpp.
Q_CORE_EXPORT void qt_qFindChildren_helper | ( | const QObject * | parent, |
const QRegularExpression & | re, | ||
const QMetaObject & | mo, | ||
QList< void * > * | list, | ||
Qt::FindChildOptions | options | ||
) |