QtRemoteObjects QML Type
QtRemoteObjects 전역 객체는 QML에서 원격 유형으로 작업하는 데 유용한 함수를 제공합니다. 더 보기...
Import Statement: | import QtRemoteObjects 6.8 |
메서드
- Promise watch(QRemoteObjectPendingCall reply, int timeout)
상세 설명
메서드 문서
Promise watch(QRemoteObjectPendingCall reply, int timeout = 30000) |
자바스크립트 프로미스의 복제본에서 reply 로 표시되는 반환값을 캡슐화합니다. 시간 제한은 timeout 으로 설정할 수 있습니다. 기본 시간 제한 값은 30초입니다.
QtRemoteObjects.watch(replica.fetchDetails(identifier)) .then(function(value) { details = value }, function(error) { console.log("error fetching details:", error) })
© 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.