Nesta página

QtRemoteObjects QML Type

O objeto global QtRemoteObjects oferece funções úteis para trabalhar com tipos remotos no QML. Mais...

Import Statement: import QtRemoteObjects 6.12

Métodos

  • Promise watch(QRemoteObjectPendingCall reply, int timeout)

Descrição detalhada

Documentação do método

Promise watch(QRemoteObjectPendingCall reply, int timeout = 30000)

Encapsula o valor de retorno, representado por ` reply`, proveniente de uma réplica, em uma Promise do JavaScript. É possível definir um tempo limite com ` timeout`. O valor padrão do tempo limite é de 30 segundos.

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.