이 페이지에서

QAbstractObjectRegistryRef Class

QAbstractObjectRegistryRef 클래스는 ‘ Qt Qml ’ 디자인 지원 객체 참조 클래스 전체의 기저 클래스입니다. 더 보기...

헤더: #include <QAbstractObjectRegistryRef>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlDesignSupport)
target_link_libraries(mytarget PRIVATE Qt6::QmlDesignSupport)
qmake: QT += qmldesignsupport
다음부터: Qt 6.12부터
QML에서: AbstractObjectRegistryRef
상속: QObject
상속받는 클래스:

QMultiObjectRegistryRef 그리고 QObjectRegistryRef

속성

  • key : QString

공개 함수

QString key() const
void setKey(const QString &key)

신호

void keyChanged(const QString &key)

재구현된 보호된 함수

virtual bool event(QEvent *event) override

상세 설명

이 클래스는 단독으로 인스턴스화할 수 없으며, 다음 파생 클래스 중 하나를 사용해야 합니다: QObjectRegistryRef 또는 QMultiObjectRegistryRef

동일한 키로 여러 객체가 등록된 경우, 파생 클래스 ` QMultiObjectRegistryRef`를 사용하십시오. 일반적으로 이는 모델에 의해 인스턴스화된 델리게이트 객체가 등록될 때 발생합니다. 해당 키가 단일 객체만 등록하는 데 사용된다는 것을 알고 있다면, 파생 클래스 ` QObjectRegistryRef `를 사용하는 것이 권장됩니다.

속성 문서

key : QString

이 속성은 이 참조가 가리키는 등록된 객체의 키를 저장합니다.

액세스 함수:

QString key() const
void setKey(const QString &key)

Notifier 신호:

void keyChanged(const QString &key)

ObjectRegistry도 참조하십시오 .

멤버 함수 문서

[override virtual protected] bool QAbstractObjectRegistryRef::event(QEvent *event)

QObject::event(QEvent *e)를 재구현합니다.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.