IviApplication QML Type

Provides a shell extension for embedded-style user interfaces. 更多...

import 语句: import QtWayland.Compositor 1.15
Since: Qt 5.8
实例化: QWaylandIviApplication

信号

详细描述

The IviApplication extension provides a way to associate an IviSurface 与常规 Waylnd 表面。使用 IviSurface 接口,客户端可以通过给出的 ivi ID 标识自身,且合成器可以要求客户端重置尺寸。

IviApplication corresponds to the Wayland ivi_application 接口。

To provide the functionality of the shell extension in a compositor, create an instance of the IviApplication component and add it to the list of extensions supported by the compositor:

import QtWayland.Compositor 1.15
WaylandCompositor {
    IviApplication {
        onIviSurfaceCreated: {
            if (iviSurface.iviId === navigationIviId) {
                // ...
            }
        }
    }
}
					

信号文档编制

void iviSurfaceCreated ( IviSurface * iviSurface )

此信号发射当 IviSurface has been created. The supplied iviSurface is most commonly used to instantiate a ShellSurfaceItem .

注意: 相应处理程序是 onIviSurfaceCreated .

void iviSurfaceRequested ( WaylandSurface surface , int iviId , WaylandResource resource )

This signal is emitted when the client has requested an ivi_surface to be associated with surface , which is identified by iviId . The handler for this signal is expected to create the ivi surface for resource and initialize it within the scope of the signal emission. If no ivi surface is created, a default one will be created instead.

注意: 相应处理程序是 onIviSurfaceRequested .