diff options
author | BogDan Vatra <bogdan@kdab.com> | 2017-11-17 16:28:28 +0200 |
---|---|---|
committer | BogDan Vatra <bogdan@kdab.com> | 2017-12-08 17:28:03 +0000 |
commit | 9ae28ac68af20b4d8b305fa78a478833cc833642 (patch) | |
tree | 2e633b38453597e7b7bff60dafd61a3f54b31304 /examples | |
parent | f101d41c8f7d2068e168f3bc967cde74aeae7f4c (diff) |
Say hello to QRemoteObjectNode::heartbeatInterval property
This property can be used to periodically check the connection between
the replica and the source. If the connection is lost, the replica
enters in the "Suspect" state and will attempt to reconnect.
Task-number: QTBUG-64086
Change-Id: Icf67e173073c9d277575c8faf01a0a1ffab5bc07
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/remoteobjects/modelviewclient/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/remoteobjects/modelviewclient/main.cpp b/examples/remoteobjects/modelviewclient/main.cpp index a62531f..7848198 100644 --- a/examples/remoteobjects/modelviewclient/main.cpp +++ b/examples/remoteobjects/modelviewclient/main.cpp @@ -66,6 +66,7 @@ int main(int argc, char **argv) QRemoteObjectNode node(QUrl(QStringLiteral("local:registry"))); + node.setHeartbeatInterval(1000); QTreeView view; view.setWindowTitle(QStringLiteral("RemoteView")); view.resize(640,480); |