Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickattachedpropertypropagator.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKATTACHEDOBJECT_H
5#define QQUICKATTACHEDOBJECT_H
6
7#include <QtCore/qobject.h>
8#include <QtQuickControls2/qtquickcontrols2global.h>
9
11
13
14class Q_QUICKCONTROLS2_EXPORT QQuickAttachedPropertyPropagator : public QObject
15{
17
18public:
19 explicit QQuickAttachedPropertyPropagator(QObject *parent = nullptr);
21
22 QList<QQuickAttachedPropertyPropagator *> attachedChildren() const;
23
24 QQuickAttachedPropertyPropagator *attachedParent() const;
25
26protected:
27 void initialize();
28
29 virtual void attachedParentChange(QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent);
30
31private:
32#ifndef QT_NO_DEBUG_STREAM
33 friend Q_QUICKCONTROLS2_EXPORT QDebug operator<<(QDebug debug, const QQuickAttachedPropertyPropagator *propagator);
34#endif
35
36 Q_DECLARE_PRIVATE(QQuickAttachedPropertyPropagator)
37};
38
40
41#endif // QQUICKATTACHEDOBJECT_H
\inmodule QtCore
\inmodule QtCore
Definition qobject.h:103
The QQuickAttachedPropertyPropagator class provides a way to propagate attached properties.
Combined button and popup list for selecting options.
static bool initialize()
Definition qctf.cpp:94
#define Q_OBJECT
QDataStream & operator<<(QDataStream &out, const MyClass &myObj)
[4]