QtRemoteObjects QML Type

The QtRemoteObjects global object provides useful functions for working with remote types in QML. More...

Import Statement: import QtRemoteObjects 5.15
Since: Qt 5.14

Methods

  • Promise watch(QRemoteObjectPendingCall reply, int timeout)

Detailed Description

Method Documentation

Promise watch(QRemoteObjectPendingCall reply, int timeout = 30000)

Encapsulates the return value, represented by reply, from a replica in a JavaScript Promise. A timeout can be set with timeout. The default timeout value is 30 seconds.

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

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