このページでは

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.