![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#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>#include <QtCore/qtcoreexports.h>#include <chrono>Go to the source code of this file.
Classes | |
| class | QObjectData |
| class | QObject |
| \inmodule QtCore More... | |
| class | QSignalBlocker |
| Exception-safe wrapper around QObject::blockSignals(). More... | |
Namespaces | |
| namespace | QtPrivate |
Macros | |
| #define | Q_DECLARE_INTERFACE(IFace, IId) |
| #define | Q_SET_OBJECT_NAME(obj) |
Typedefs | |
| typedef QList< QObject * > | QObjectList |
Functions | |
| Q_CORE_EXPORT void | qt_qFindChildren_helper (const QObject *parent, QAnyStringView name, const QMetaObject &mo, QList< void * > *list, Qt::FindChildOptions options) |
| Q_CORE_EXPORT void | qt_qFindChildren_helper (const QObject *parent, const QRegularExpression &re, const QMetaObject &mo, QList< void * > *list, Qt::FindChildOptions options) |
| Q_CORE_EXPORT QObject * | qt_qFindChild_helper (const QObject *parent, QAnyStringView name, const QMetaObject &mo, Qt::FindChildOptions options) |
| template<class T> | |
| T | qobject_cast (QObject *object) |
| \variable QObject::staticMetaObject | |
| template<class T> | |
| T | qobject_cast (const QObject *object) |
| template<class T> | |
| constexpr const char * | qobject_interface_iid ()=delete |
| template<class T> | |
| T * | qobject_iid_cast (QObject *object, const char *IId=qobject_interface_iid< T * >()) |
| template<class T> | |
| std::enable_if_t< std::is_const< T >::value, T * > | qobject_iid_cast (const QObject *object) |
| const QBindingStorage * | qGetBindingStorage (const QObject *o) |
| QBindingStorage * | qGetBindingStorage (QObject *o) |
| Q_CORE_EXPORT QDebug | operator<< (QDebug, const QObject *) |
| QObject & | QtPrivate::deref_for_methodcall (QObject &o) |
| QObject & | QtPrivate::deref_for_methodcall (QObject *o) |
| #define Q_DECLARE_INTERFACE | ( | IFace, | |
| IId ) |
| #define Q_SET_OBJECT_NAME | ( | obj | ) |
|
Definition at line 4716 of file qobject.cpp.
|
inline |
|
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 |
| QObject * qt_qFindChild_helper | ( | const QObject * | parent, |
| QAnyStringView | name, | ||
| const QMetaObject & | mo, | ||
| Qt::FindChildOptions | options ) |
Definition at line 2240 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 ) |
| void qt_qFindChildren_helper | ( | const QObject * | parent, |
| QAnyStringView | name, | ||
| const QMetaObject & | mo, | ||
| QList< void * > * | list, | ||
| Qt::FindChildOptions | options ) |
Definition at line 2203 of file qobject.cpp.