IviApplication QML Type
提供了一个用于嵌入式风格用户界面的 Shell 扩展。更多...
| Import Statement: | import QtWayland.Compositor.IviApplication |
| In C++: | QWaylandIviApplication |
信号
- void iviSurfaceCreated(IviSurface *iviSurface)
- void iviSurfaceRequested(WaylandSurface surface, int iviId, WaylandResource resource)
详细说明
IviApplication 扩展提供了一种将IviSurface 与常规 Wayland 表面关联的方法。通过使用IviSurface 接口,客户端可以通过提供一个 ivi id 来标识自身,而合成器可以请求客户端调整大小。
IviApplication 对应于 Wayland 的ivi_application 接口。
要在合成器中提供 shell 扩展的功能,请创建 IviApplication 组件的实例,并将其添加到合成器支持的扩展列表中:
import QtWayland.Compositor.IviApplication
WaylandCompositor {
IviApplication {
onIviSurfaceCreated: {
if (iviSurface.iviId === navigationIviId) {
// ...
}
}
}
}Signal 文档
void iviSurfaceCreated(IviSurface *iviSurface)
当创建了IviSurface 时,会触发此信号。传入的iviSurface 最常用于实例化ShellSurfaceItem 。
注意: 对应的处理程序 为onIviSurfaceCreated 。
void iviSurfaceRequested(WaylandSurface surface, int iviId, WaylandResource resource)
当客户端请求将一个ivi_surface 与surface 关联时,会发出此信号,该 由iviId 标识。此信号的处理程序应在信号发出期间创建resource 的 ivi 表面并对其进行初始化。如果未创建 ivi 表面,则会自动创建一个默认的 ivi 表面。
注意: 相应的处理程序 是onIviSurfaceRequested 。
© 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.