Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qabstractobjectregistryref.h
Go to the documentation of this file.
1// Copyright (C) 2026 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 QABSTRACTOBJECTREGISTRYREF_H
5#define QABSTRACTOBJECTREGISTRYREF_H
6
7#include <QtQmlDesignSupport/qtqmldesignsupportexports.h>
8
9#include <QtQml/qqml.h>
10
11QT_BEGIN_NAMESPACE
12
13class QAbstractObjectRegistryRefPrivate;
14
15class Q_QMLDESIGNSUPPORT_EXPORT QAbstractObjectRegistryRef : public QObject
16{
17 Q_OBJECT
18
19 Q_DECLARE_PRIVATE(QAbstractObjectRegistryRef)
20
21 Q_PROPERTY(QString key READ key WRITE setKey NOTIFY keyChanged FINAL)
22 Q_PROPERTY(QQmlListProperty<QObject> data READ data NOTIFY dataChanged FINAL)
23 Q_CLASSINFO("DefaultProperty", "data")
24
25 QML_NAMED_ELEMENT(AbstractObjectRegistryRef)
26 QML_UNCREATABLE("AbstractObjectRegistryRef is Abstract")
27
28public:
29 ~QAbstractObjectRegistryRef() override;
30
31 QString key() const;
32 void setKey(const QString &key);
33
34 QQmlListProperty<QObject> data();
35
36protected:
37 explicit QAbstractObjectRegistryRef(QAbstractObjectRegistryRefPrivate &dd,
38 QObject *parent = nullptr);
39
40Q_SIGNALS:
41 void keyChanged();
42 void dataChanged();
43};
44
45QT_END_NAMESPACE
46
47#endif // QABSTRACTOBJECTREGISTRYREF_H
\inmodule QtQmlDesignSupport