QtRemoteObjects QML Type

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

Import Statement: import QtRemoteObjects 5.14
Since: Qt 5.14

Methods

  • Promise watch(reply, int timeout = 30000)

Detailed Description

Method Documentation

Promise watch(reply, int timeout = 30000)

Encapsulates the return value from a replica in a JavaScript Promise.


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