Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
9
QT_BEGIN_NAMESPACE
10
11
class
QObjectRegistryRefPrivate;
12
class
QQmlEngine;
13
14
class
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
24
public
:
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
~QObjectRegistryRef() override;
29
30
QObject *object()
const
;
31
32
protected
:
33
bool
event(QEvent *) override;
34
35
Q_SIGNALS:
36
void
objectChanged(QObject *object);
37
};
38
39
QT_END_NAMESPACE
40
41
#
endif
// QOBJECTREGISTRYREF_H
QObjectRegistryRef
\inmodule QtQmlDesignSupport
Definition
qobjectregistryref.h:15
qtdeclarative
src
qmldesignsupport
qobjectregistryref.h
Generated on
for Qt by
1.18.0