QtRemoteObjects QML Type
L'objet global QtRemoteObjects fournit des fonctions utiles pour travailler avec des types distants dans QML. En savoir plus...
| Import Statement: | import QtRemoteObjects 6.12 |
Méthodes
- Promise watch(QRemoteObjectPendingCall reply, int timeout)
Description détaillée
Documentation de la méthode
Promise watch(QRemoteObjectPendingCall reply, int timeout = 30000)
Encapsule la valeur de retour, représentée par ` reply`, provenant d'une réplique, dans une promesse JavaScript. Un délai d'expiration peut être défini à l'aide de ` timeout`. La valeur par défaut du délai d'expiration est de 30 secondes.
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.