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_p.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//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef QMULTIOBJECTREGISTRYREF_P_H
16#define QMULTIOBJECTREGISTRYREF_P_H
17
18#include <QtQmlDesignSupport/qmultiobjectregistryref.h>
19#include <QtQmlDesignSupport/private/qabstractobjectregistryref_p.h>
20
22
24 : public QAbstractObjectRegistryRefPrivate
25{
26 Q_DECLARE_PUBLIC(QMultiObjectRegistryRef)
27
28public:
29 explicit QMultiObjectRegistryRefPrivate(QQmlEngine *engine = nullptr);
30
31 void handleObjectAdded(QObject *obj) override;
32 void handleObjectRemoved(QObject *obj) override;
33 void handleInitialObjects() override;
34
35 static qsizetype objectsCount(QQmlListProperty<QObject> *l);
36 static QObject *objectsAt(QQmlListProperty<QObject> *l, qsizetype i);
37
38private:
39 QList<QObject *> m_objects;
40};
41
42QT_END_NAMESPACE
43
44#endif // QMULTIOBJECTREGISTRYREF_P_H
Combined button and popup list for selecting options.