PresentationTime QML Type

フレームが画面に表示されるタイミングをトラッキングする。詳細...

Import Statement: import QtWayland.Compositor.PresentationTime
Since: Qt 6.3
In C++: QWaylandPresentationTime

メソッド

  • void sendFeedback(Window window, int sequence, int sec, int nsec)

詳細な説明

PresentationTimeエクステンションは、サーフェスのレンダリングタイミングを追跡する方法を提供します。クライアントがサーフェスに関連するフィードバックを要求すると、コンポジターがサーフェスが画面上に表示された時刻と一緒にフィードバックのイベントを送信します。

PresentationTimeはWaylandのwp_presentation インターフェースに対応しています。

コンポジターでPresentationTimeエクステンションの機能を提供するには、PresentationTimeコンポーネントのインスタンスを作成し、コンポジターがサポートするエクステンションのリストに追加します:

そして、サーフェスがスクリーンに表示されたときにsendFeedback() を呼び出します。通常、タイミングはdrm page flipイベントから取得できます。

import QtWayland.Compositor.PresentationTime

WaylandCompositor {
    PresentationTime {
        id: presentationTime
    }
}

メソッドの説明

void sendFeedback(Window window, int sequence, int sec, int nsec)

window を使用して、フレームが画面に表示されたことを通知するインターフェイスです。お使いのプラットフォームがDRMイベントをサポートしている場合、page_flip_handler が適切なタイミングで送信されます。sequence はリフレッシュ・カウンター。secnsec は、それぞれプレゼンテーション・タイムスタンプの秒とナノ秒の部分を保持する。


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