QWaylandIviApplication Class

QWaylandIviApplication 类是嵌入式用户界面的扩展。更多

头文件: #include <QWaylandIviApplication>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
在 QML 中: IviApplication
继承: QWaylandCompositorExtensionTemplate

公共函数

QWaylandIviApplication()
QWaylandIviApplication(QWaylandCompositor *compositor)

重新实现的公共函数

virtual void initialize() override

信号

void iviSurfaceCreated(QWaylandIviSurface *iviSurface)
void iviSurfaceRequested(QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)

静态公共成员

const struct wl_interface *interface()

详细说明

QWaylandIviApplication 扩展提供了一种将QWaylandIviSurface 与常规 Wayland 表面关联的方法。使用QWaylandIviSurface 接口,客户端可以通过提供一个 ivi id 来识别自己,而合成器则可以要求客户端调整大小。

QWaylandIviApplication 与 Waylandivi_application 接口相对应。

成员函数文档

QWaylandIviApplication::QWaylandIviApplication()

构造一个 QWaylandIviApplication 对象。

QWaylandIviApplication::QWaylandIviApplication(QWaylandCompositor *compositor)

为提供的compositor 构建一个 QWaylandIviApplication 对象。

[override virtual] void QWaylandIviApplication::initialize()

重新实现:QWaylandCompositorExtension::initialize().

初始化 shell 扩展。

[static] const struct wl_interface *QWaylandIviApplication::interface()

返回QWaylandIviApplication 的 Wayland 界面。

[signal] void QWaylandIviApplication::iviSurfaceCreated(QWaylandIviSurface *iviSurface)

IviSurface,iviSurface 已创建时,会发出该信号。

[signal] void QWaylandIviApplication::iviSurfaceRequested(QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)

当客户端请求将ivi_surfacesurface 关联时,就会发出该信号,后者由iviId 标识。该信号的处理程序应为resource 创建 ivi 表面,并在信号发射范围内将其初始化。如果没有创建 ivi 表面,则会创建一个默认的 ivi 表面。

© 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.