Nesta página

IviApplication QML Type

Oferece uma extensão do shell para interfaces de usuário no estilo “embedded”. Mais...

Import Statement: import QtWayland.Compositor.IviApplication
In C++: QWaylandIviApplication

Sinais

Descrição detalhada

A extensão IviApplication oferece uma maneira de associar um IviSurface a uma superfície Wayland comum. Usando a interface IviSurface, o cliente pode se identificar fornecendo um ID ivi, e o compositor pode solicitar que o cliente redimensione a janela.

O IviApplication corresponde à interface ivi_application do Wayland.

Para disponibilizar a funcionalidade da extensão de shell em um compositor, crie uma instância do componente IviApplication e adicione-a à lista de extensões suportadas pelo compositor:

import QtWayland.Compositor.IviApplication

WaylandCompositor {
    IviApplication {
        onIviSurfaceCreated: {
            if (iviSurface.iviId === navigationIviId) {
                // ...
            }
        }
    }
}

Documentação do Signal

void iviSurfaceCreated(IviSurface *iviSurface)

Este sinal é emitido quando um ` IviSurface ` é criado. O ` iviSurface ` fornecido é mais comumente usado para instanciar um ` ShellSurfaceItem`.

Observação: O manipulador correspondente é onIviSurfaceCreated.

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

Este sinal é emitido quando o cliente solicita que um ivi_surface seja associado a surface, identificado por iviId. Espera-se que o manipulador deste sinal crie a superfície ivi para resource e a inicialize dentro do escopo da emissão do sinal. Caso nenhuma superfície ivi seja criada, uma superfície padrão será criada em seu lugar.

Observação: O manipulador correspondente é 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.