<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qremoteobjectnode.cpp --> <title>Node QML Type | Qt Remote Objects 5.12.2</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td ><a href="qtremoteobjects-index.html">Qt Remote Objects</a></td><td ><a href="qtremoteobjects-qmlmodule.html">QML Types</a></td><td >Node QML Type</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtremoteobjects-index.html">Qt 5.12.2 Reference Documentation</a></td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#properties">Properties</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">Node QML Type</h1> <span class="subtitle"></span> <!-- $$$Node-brief --> <p>A node on a Qt Remote Objects network. <a href="#details">More...</a></p> <!-- @@@Node --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtRemoteObjects 5.12</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiates:</td><td class="memItemRight bottomAlign"> <a href="qml-qtremoteobjects-node.html"><a href="qremoteobjectnode.html">QRemoteObjectNode</a></td></tr></table></div><ul> <li><a href="qml-qtremoteobjects-node-members.html">List of all members, including inherited members</a></li> </ul> <a name="properties"></a> <h2 id="properties">Properties</h2> <ul> <li class="fn"><b><b><a href="qml-qtremoteobjects-node.html#heartbeatInterval-prop">heartbeatInterval</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qtremoteobjects-node.html#persistedStore-prop">persistedStore</a></b></b> : QRemoteObjectAbstractPersistedStore</li> <li class="fn"><b><b><a href="qml-qtremoteobjects-node.html#registryUrl-prop">registryUrl</a></b></b> : url</li> </ul> <!-- $$$Node-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> <p>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.</p> <p>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.</p> <!-- @@@Node --> <h2>Property Documentation</h2> <!-- $$$heartbeatInterval --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="heartbeatInterval-prop"> <td class="tblQmlPropNode"><p> <a name="heartbeatInterval-prop"></a><span class="name">heartbeatInterval</span> : <span class="type">int</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Heartbeat interval in ms.</p> <p>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.</p> <p>A value of <code>0</code> (the default) will disable the heartbeat.</p> </div></div><!-- @@@heartbeatInterval --> <br/> <!-- $$$persistedStore --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="persistedStore-prop"> <td class="tblQmlPropNode"><p> <a name="persistedStore-prop"></a><span class="name">persistedStore</span> : <span class="type">QRemoteObjectAbstractPersistedStore</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Allows setting a <a href="qremoteobjectabstractpersistedstore.html">QRemoteObjectAbstractPersistedStore</a> instance for the node.</p> <p>Allows replica <a href="qtremoteobjects-repc.html#prop">PROP</a> 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.</p> <p>Requires a <a href="qremoteobjectabstractpersistedstore.html">QRemoteObjectAbstractPersistedStore</a> class implementation to control where and how persistence is handled. A default QSettings-based implementation is provided by <a href="qml-qtremoteobjects-settingsstore.html">SettingsStore</a>.</p> </div></div><!-- @@@persistedStore --> <br/> <!-- $$$registryUrl --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="registryUrl-prop"> <td class="tblQmlPropNode"><p> <a name="registryUrl-prop"></a><span class="name">registryUrl</span> : <span class="type">url</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>The address of the <a href="qremoteobjectregistry.html">Registry</a> used by this node.</p> <p>This is an empty QUrl if there is no registry in use.</p> </div></div><!-- @@@registryUrl --> <br/> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> 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. </p> </div> </body> </html>