QWaylandPresentationTime Class

Die Klasse QWaylandPresentationTime ist eine Erweiterung, um das Timing für Bildschirmpräsentationen zu ermitteln. Mehr...

Kopfzeile: #include <QWaylandPresentationTime>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
Since: Qt 6.3
In QML: PresentationTime
Vererbt: QWaylandCompositorExtensionTemplate

Öffentliche Funktionen

QWaylandPresentationTime()
QWaylandPresentationTime(QWaylandCompositor *compositor)
void sendFeedback(QQuickWindow *window, quint64 sequence, quint64 tv_sec, quint32 tv_nsec)

Reimplementierte öffentliche Funktionen

virtual void initialize() override

Statische öffentliche Mitglieder

const struct wl_interface *interface()

Detaillierte Beschreibung

Die Erweiterung QWaylandPresentationTime bietet eine Möglichkeit, das Rendering-Timing für eine Oberfläche zu verfolgen. Der Client kann Rückmeldungen anfordern, die mit einer Oberfläche verbunden sind, und der Compositor sendet dann Ereignisse für die Rückmeldung mit dem Zeitpunkt, zu dem die Oberfläche auf dem Bildschirm dargestellt wird.

QWaylandPresentationTime entspricht der Wayland wp_presentation Schnittstelle.

Dokumentation der Mitgliedsfunktionen

QWaylandPresentationTime::QWaylandPresentationTime()

Konstruiert ein leeres QWaylandPresentationTime-Objekt.

QWaylandPresentationTime::QWaylandPresentationTime(QWaylandCompositor *compositor)

Konstruiert ein QWaylandPresentationTime-Objekt für compositor.

[override virtual] void QWaylandPresentationTime::initialize()

Reimplements: QWaylandCompositorExtension::initialize().

Initialisiert die Erweiterung.

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

Gibt die Wayland-Schnittstelle für die QWaylandPresentationTime zurück.

[invokable] void QWaylandPresentationTime::sendFeedback(QQuickWindow *window, quint64 sequence, quint64 tv_sec, quint32 tv_nsec)

Schnittstelle zur Benachrichtigung, dass ein Bild auf dem Bildschirm angezeigt wird, mit window. Wenn Ihre Plattform DRM-Ereignisse unterstützt, ist page_flip_handler der richtige Zeitpunkt, um sie zu senden. sequence ist der Aktualisierungszähler. tv_sec und tv_nsec enthalten die Sekunden- bzw. Nanosekundenanteile des Zeitstempels der Präsentation.

Hinweis: Diese Funktion kann über das Meta-Objektsystem und von QML aus aufgerufen werden. Siehe Q_INVOKABLE.

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