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 与 Waylandivi_application
接口相对应。
要在合成器中提供 shell 扩展的功能,可创建一个 IviApplication 组件实例,并将其添加到合成器支持的扩展列表中:
import QtWayland.Compositor.IviApplication WaylandCompositor { IviApplication { onIviSurfaceCreated: { if (iviSurface.iviId === navigationIviId) { // ... } } } }
信号文档
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
。
© 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.