QtRemoteObjects QML Type

Das globale Objekt QtRemoteObjects bietet nützliche Funktionen für die Arbeit mit entfernten Typen in QML. Mehr...

Import Statement: import QtRemoteObjects 6.8

Methoden

  • Promise watch(QRemoteObjectPendingCall reply, int timeout)

Detaillierte Beschreibung

Dokumentation der Methode

Promise watch(QRemoteObjectPendingCall reply, int timeout = 30000)

Kapselt den Rückgabewert, der durch reply dargestellt wird, von einer Replik in einem JavaScript-Promise. Eine Zeitüberschreitung kann mit timeout festgelegt werden. Der Standardwert für die Zeitüberschreitung beträgt 30 Sekunden.

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

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