5#ifndef QQUICKATTACHEDOBJECT_H
6#define QQUICKATTACHEDOBJECT_H
8#include <QtCore/qobject.h>
9#include <QtQuickControls2/qtquickcontrols2global.h>
13class QQuickAttachedPropertyPropagatorPrivate;
20 explicit QQuickAttachedPropertyPropagator(QObject *parent =
nullptr);
21 ~QQuickAttachedPropertyPropagator();
23 QList<QQuickAttachedPropertyPropagator *> attachedChildren()
const;
25 QQuickAttachedPropertyPropagator *attachedParent()
const;
30 virtual void attachedParentChange(QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent);
33#ifndef QT_NO_DEBUG_STREAM
34 friend Q_QUICKCONTROLS2_EXPORT QDebug operator<<(QDebug debug,
const QQuickAttachedPropertyPropagator *propagator);
37 Q_DECLARE_PRIVATE(QQuickAttachedPropertyPropagator)
void transientParentWindowChanged(QWindow *newTransientParent)
void detachFrom(QObject *object)
void itemParentChanged(QQuickItem *item, QQuickItem *parent) override
void itemWindowChanged(QQuickWindow *window)
QPointer< QQuickAttachedPropertyPropagator > attachedParent
QList< QQuickAttachedPropertyPropagator * > attachedChildren
void setAttachedParent(QQuickAttachedPropertyPropagator *parent)
The QQuickAttachedPropertyPropagator class provides a way to propagate attached properties.
QDebug operator<<(QDebug dbg, const NSObject *nsObject)
static QList< QQuickAttachedPropertyPropagator * > findAttachedChildren(const QMetaObject *type, QObject *object)
static QQuickItem * findAttachedItem(QObject *parent)
static QQuickAttachedPropertyPropagator * findAttachedParent(const QMetaObject *ourAttachedType, QObject *objectWeAreAttachedTo)
const QMetaObject * firstCppMetaObject(QQuickAttachedPropertyPropagator *propagator)