(2c212e15f8b9dc2578d93ac69a0f5826ea9de18f)
#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.
|
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) |
|
◆ Q_DECLARE_INTERFACE
#define Q_DECLARE_INTERFACE |
( |
| IFace, |
|
|
| IId ) |
Value:
{ return IId; } \
constexpr const char * qobject_interface_iid()=delete
T qobject_cast(QObject *object)
\variable QObject::staticMetaObject
T * qobject_iid_cast(QObject *object, const char *IId=qobject_interface_iid< T * >())
Definition at line 462 of file qobject.h.
◆ Q_SET_OBJECT_NAME
#define Q_SET_OBJECT_NAME |
( |
| obj | ) |
|
Value:
object setObjectName("A new object name")
Definition at line 573 of file qobject.h.
◆ QObjectList
◆ operator<<()
◆ qGetBindingStorage() [1/2]
◆ qGetBindingStorage() [2/2]
◆ qobject_cast() [1/2]
template<class T>
T qobject_cast |
( |
const QObject * | object | ) |
|
|
related |
◆ qobject_cast() [2/2]
\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:
QPushButton::staticMetaObject.className();
obj->metaObject()->className();
- See also
- metaObject()
Definition at line 421 of file qobject.h.
◆ qobject_iid_cast() [1/2]
template<class T>
std::enable_if_t< std::is_const< T >::value, T * > qobject_iid_cast |
( |
const QObject * | object | ) |
|
|
inline |
◆ qobject_iid_cast() [2/2]
◆ qobject_interface_iid()
template<class T>
const char * qobject_interface_iid |
( |
| ) |
|
|
constexprdelete |
◆ qt_qFindChild_helper()
◆ qt_qFindChildren_helper() [1/2]
◆ qt_qFindChildren_helper() [2/2]