Node QML 類型

Qt Remote Objects 網絡節點。 更多...

import 語句: import QtRemoteObjects 5.15
實例化: QRemoteObjectNode

特性

詳細描述

The Node type provides an entry point to a Qt Remote Objects network. A network can be as simple as two nodes, or an arbitrarily complex set of processes and devices.

A Node does not have a url that other nodes can connect to, and thus is able to acquire replicas only. It is not able to share source objects.

特性文檔編製

heartbeatInterval : int

心跳間隔 (以毫秒為單位)。

The heartbeat (only helpful for socket connections) will periodically send a message to connected nodes to detect whether the connection was disrupted. Qt Remote Objects will try to reconnect automatically if it detects a dropped connection. This function can help with that detection since the client will only detect that the server is unavailable when it tries to send data.

0 (默認) 將禁用心跳。

persistedStore : QRemoteObjectAbstractPersistedStore

允許設置 QRemoteObjectAbstractPersistedStore 實例為節點。

允許復本 PROP members with the PERSISTED trait to save their current value when the replica is deleted and restore a stored value the next time the replica is started.

要求 QRemoteObjectAbstractPersistedStore class implementation to control where and how persistence is handled. A default QSettings -based implementation is provided by SettingsStore .

registryUrl : url

The address of the 注冊 用於此節點。

這是空 QUrl 若使用中沒有注冊。