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
qobjectregistryref.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 QOBJECTREGISTRYREF_H
5#define QOBJECTREGISTRYREF_H
6
7#include <QtQmlDesignSupport/qabstractobjectregistryref.h>
8
9QT_BEGIN_NAMESPACE
10
11class QObjectRegistryRefPrivate;
12class QQmlEngine;
13
14class Q_QMLDESIGNSUPPORT_EXPORT QObjectRegistryRef : public QAbstractObjectRegistryRef
15{
16 Q_OBJECT
17
18 Q_DECLARE_PRIVATE(QObjectRegistryRef)
19
20 Q_PROPERTY(QObject *object READ object NOTIFY objectChanged FINAL)
21
22 QML_NAMED_ELEMENT(ObjectRegistryRef)
23
24public:
25 explicit QObjectRegistryRef(QObject *parent = nullptr);
26 explicit QObjectRegistryRef(QQmlEngine *engine, QObject *parent = nullptr);
27 explicit QObjectRegistryRef(QQmlEngine *engine, const QString &key, QObject *parent = nullptr);
28
29 QObject *object() const;
30
31Q_SIGNALS:
32 void objectChanged();
33};
34
35QT_END_NAMESPACE
36
37#endif // QOBJECTREGISTRYREF_H
\inmodule QtQmlDesignSupport