このページでは

PresentationTime QML Type

フレームが画面に表示されるタイミングを追跡する機能を提供します。詳細...

Import Statement: import QtWayland.Compositor.PresentationTime
Since: Qt 6.3

メソッド

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

詳細な説明

PresentationTime 拡張機能は、サーフェスのレンダリングタイミングを追跡する手段を提供します。クライアントはサーフェスに関連するフィードバックを要求でき、コンポジターは、そのサーフェスが画面に表示された時刻を伴うフィードバックイベントを送信します。

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

コンポジターで PresentationTime 拡張機能の機能を提供するには、PresentationTime コンポーネントのインスタンスを作成し、それをコンポジターがサポートする拡張機能のリストに追加します。

その後、サーフェスが画面に表示された際にsendFeedback() を呼び出します。通常、タイミングは drm ページフリップイベントから取得できます。

import QtWayland.Compositor.PresentationTime

WaylandCompositor {
    PresentationTime {
        id: presentationTime
    }
}

メソッドのドキュメント

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

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

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