이 페이지에서

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.