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
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
11
QT_BEGIN_NAMESPACE
12
13
class
QAbstractObjectRegistryRefPrivate;
14
15
class
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
28
public
:
29
~QAbstractObjectRegistryRef() override;
30
31
QString key()
const
;
32
void
setKey(
const
QString &key);
33
34
QQmlListProperty<QObject> data();
35
36
protected
:
37
explicit
QAbstractObjectRegistryRef(QAbstractObjectRegistryRefPrivate &dd,
38
QObject *parent =
nullptr
);
39
40
bool
event(QEvent *) override;
41
42
Q_SIGNALS:
43
void
keyChanged(
const
QString &key);
44
void
dataChanged();
45
};
46
47
QT_END_NAMESPACE
48
49
#
endif
// QABSTRACTOBJECTREGISTRYREF_H
QAbstractObjectRegistryRef
\inmodule QtQmlDesignSupport
Definition
qabstractobjectregistryref.h:16
qtdeclarative
src
qmldesignsupport
qabstractobjectregistryref.h
Generated on
for Qt by
1.18.0