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
qmultiobjectregistryref.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 QMULTIOBJECTREGISTRYREF_H
5#define QMULTIOBJECTREGISTRYREF_H
6
7#include <QtQmlDesignSupport/qabstractobjectregistryref.h>
8
9QT_BEGIN_NAMESPACE
10
11class QMultiObjectRegistryRefPrivate;
12class QQmlEngine;
13
14class Q_QMLDESIGNSUPPORT_EXPORT QMultiObjectRegistryRef : public QAbstractObjectRegistryRef
15{
16 Q_OBJECT
17
18 Q_DECLARE_PRIVATE(QMultiObjectRegistryRef)
19
20 Q_PROPERTY(QQmlListProperty<QObject> objects READ objects NOTIFY objectsChanged FINAL)
21
22 QML_NAMED_ELEMENT(MultiObjectRegistryRef)
23
24public:
25 explicit QMultiObjectRegistryRef(QObject *parent = nullptr);
26 explicit QMultiObjectRegistryRef(QQmlEngine *engine, QObject *parent = nullptr);
27 explicit QMultiObjectRegistryRef(QQmlEngine *engine, const QString &key,
28 QObject *parent = nullptr);
29
30 QQmlListProperty<QObject> objects();
31 QList<QObject *> objectsList();
32
33Q_SIGNALS:
34 void objectsChanged();
35 void objectAdded(QObject *obj);
36 void objectRemoved(QObject *obj);
37};
38
39QT_END_NAMESPACE
40
41#endif // QMULTIOBJECTREGISTRYREF_H
\inmodule QtQmlDesignSupport