Auf dieser Seite

QWaylandIviSurface Class

Die Klasse „QWaylandIviSurface“ bietet eine einfache Möglichkeit, eine Oberfläche zu identifizieren und ihre Größe anzupassen. Mehr...

Header: #include <QWaylandIviSurface>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
In QML: IviSurface
Erbt von: QWaylandShellSurfaceTemplate

Eigenschaften

Öffentliche Funktionen

QWaylandIviSurface()
QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
void initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
uint iviId() const
void sendConfigure(const QSize &size)
QWaylandSurface *surface() const

Signale

Statische öffentliche Mitglieder

QWaylandIviSurface *fromResource(wl_resource *resource)
const struct wl_interface *interface()
QWaylandSurfaceRole *role()

Ausführliche Beschreibung

Diese Klasse ist Teil der Erweiterung „ QWaylandIviApplication “ und bietet die Möglichkeit, die Funktionalität eines bestehenden „ QWaylandSurface “ um Funktionen zur Größenanpassung und Identifizierung zu erweitern.

Sie entspricht der Wayland-Schnittstelle „ ivi_surface “.

Dokumentation der Eigenschaften

[read-only] iviId : uint

Diese Eigenschaft enthält die ivi-ID dieser QWaylandIviSurface.

Zugriffsfunktionen:

uint iviId() const

Benachrichtigungssignal:

void iviIdChanged()

[read-only] surface : QWaylandSurface*

Diese Eigenschaft enthält die Oberfläche, die diesem „ QWaylandIviSurface “ zugeordnet ist.

Zugriffsfunktionen:

QWaylandSurface *surface() const

Benachrichtigungssignal:

void surfaceChanged()

Dokumentation der Member-Funktionen

QWaylandIviSurface::QWaylandIviSurface()

Erstellt ein `QWaylandIviSurface`-Objekt.

QWaylandIviSurface::QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)

Erstellt ein `QWaylandIviSurface` für ` surface ` und initialisiert es mit den angegebenen Werten für ` application`, ` surface`, ` iviId` und ` resource`.

[static] QWaylandIviSurface *QWaylandIviSurface::fromResource(wl_resource *resource)

Gibt die „ QWaylandIviSurface “ zurück, die der „ resource “ entspricht.

[invokable] void QWaylandIviSurface::initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)

Initialisiert das „ QWaylandIviSurface “ und ordnet ihm die angegebenen Werte „ iviApplication “, „ surface “, „ iviId “ und „ resource “ zu.

Hinweis: Diese Funktion kann über das Metaobjektsystem und aus QML aufgerufen werden. Siehe Q_INVOKABLE.

[static] const struct wl_interface *QWaylandIviSurface::interface()

Gibt die Wayland-Schnittstelle für die „ QWaylandIviSurface “ zurück.

[static] QWaylandSurfaceRole *QWaylandIviSurface::role()

Gibt die Oberflächenrolle für die „ QWaylandIviSurface “ zurück.

[invokable] void QWaylandIviSurface::sendConfigure(const QSize &size)

Sendet ein Konfigurationsereignis an den Client und weist ihn an, die Größe der Oberfläche auf den angegebenen Wert size anzupassen.

Hinweis: Diese Funktion kann über das Metaobjektsystem und aus QML aufgerufen werden. Siehe Q_INVOKABLE.

© 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.