IviApplication QML Type

Bietet eine Shell-Erweiterung für eingebettete Benutzeroberflächen. Mehr...

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

Signale

Detaillierte Beschreibung

Die IviApplication-Erweiterung bietet eine Möglichkeit, eine IviSurface mit einer regulären Wayland-Oberfläche zu verknüpfen. Über die Schnittstelle IviSurface kann sich der Client mit einer ivi-ID identifizieren, und der Compositor kann den Client auffordern, die Größe zu ändern.

IviApplication entspricht der Wayland ivi_application Schnittstelle.

Um die Funktionalität der Shell-Erweiterung in einem Compositor bereitzustellen, erstellen Sie eine Instanz der IviApplication-Komponente und fügen Sie sie der Liste der vom Compositor unterstützten Erweiterungen hinzu:

import QtWayland.Compositor.IviApplication

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

Signal Dokumentation

void iviSurfaceCreated(IviSurface *iviSurface)

Dieses Signal wird ausgegeben, wenn ein IviSurface erstellt worden ist. Das mitgelieferte iviSurface wird meist verwendet, um eine ShellSurfaceItem zu instanziieren.

Hinweis: Der entsprechende Handler ist onIviSurfaceCreated.


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

Dieses Signal wird ausgegeben, wenn der Client ein ivi_surface angefordert hat, das mit surface verknüpft werden soll, das durch iviId identifiziert wird. Es wird erwartet, dass der Handler für dieses Signal die ivi-Oberfläche für resource erstellt und sie im Rahmen der Signalausgabe initialisiert. Wenn keine ivi-Oberfläche erstellt wird, wird stattdessen eine Standardoberfläche erstellt.

Hinweis: Der entsprechende Handler ist 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.