<QWaylandQuickExtension> - Qt Wayland Compositor Qt Quick Extension Macro Declarations
<QWaylandQuickExtension> 헤더 파일에는 QWaylandCompositorExtension 및 QWaylandObject 의 하위 클래스에 해당하는 Qt Quick 유형을 만들기 위한 매크로가 포함되어 있습니다. 더 보기...
Header: | #include <QWaylandQuickExtension> |
Macros
Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS(className) | |
Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CONTAINER_CLASS(className) | |
(since 6.8) | Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(className, QmlType) |
자세한 설명
Qt Wayland Compositor 에 대한 확장을 만드는 경우 각 클래스에 필요한 부분을 수동으로 구현하는 대신 QWaylandQuickExtension 헤더의 매크로를 사용하는 것이 유용할 수 있습니다.
사용자 지정 셸도참조하십시오 .
매크로 문서
Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS(className)
이 매크로는 Wayland 확장을 기반으로 Qt Quick 클래스를 정의하는 데 사용할 수 있습니다. className 에서 상속하고 이름에 "QuickExtension"을 접미사로 붙이는 새 클래스를 정의합니다.
이 클래스는 QWaylandCompositorExtension 의 하위 클래스여야 하며 QWaylandCompositorExtension::initialize()가 자동으로 호출됩니다. 유형은 qmlRegisterType()을 사용하여 Qt Quick 에 수동으로 등록해야 합니다.
Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT 를참조하세요 .
Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CONTAINER_CLASS(className)
이 매크로를 사용하여 Wayland 확장을 포함하기 위한 Qt Quick 클래스를 정의할 수 있습니다. It
className 에서 상속하고 이름에 "QuickExtensionContainer"를 접미사로 붙이는 새 클래스를 정의합니다. className 에서 제공한 클래스는 QWaylandObject 에서 상속해야 하며, 새 클래스에는 기본 클래스에서 addExtension() 및 removeExtension()를 호출하여 확장을 관리하는 extensions
속성이 있습니다.
이 유형은 qmlRegisterType()을 사용하여 Qt Quick 에 수동으로 등록해야 합니다.
[since 6.8]
Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(className, QmlType)
이 매크로는 Wayland 확장을 기반으로 Qt Quick 클래스를 정의하는 데 사용할 수 있습니다. className 에서 상속하고 이름에 "QuickExtension"을 접미사로 붙이는 새 클래스를 정의합니다.
이 매크로는 Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS 와 동일하게 작동하지만 새 유형을 현재 QML 모듈에 QmlType 로 자동 등록합니다.
이 매크로는 Qt 6.8에 도입되었습니다.
© 2025 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.