이 페이지에서

QtRemoteObjects QML Type

QtRemoteObjects 전역 객체는 QML에서 원격 유형을 다루는 데 유용한 함수들을 제공합니다. 더 보기...

Import Statement: import QtRemoteObjects 6.12

메서드

  • Promise watch(QRemoteObjectPendingCall reply, int timeout)

상세 설명

메서드 문서

Promise watch(QRemoteObjectPendingCall reply, int timeout = 30000)

reply 로 표시되는 레플리카의 반환 값을 JavaScript Promise로 캡슐화합니다. timeout 를 사용하여 타임아웃을 설정할 수 있습니다. 기본 타임아웃 값은 30초입니다.

QtRemoteObjects.watch(replica.fetchDetails(identifier))
               .then(function(value) { details = value },
                     function(error) { console.log("error fetching details:", error) })

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