<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[RemoteObjects: signal when node or replica disconnects from host]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm searching for an API of QtRemoteObject to detect when a remote client node (or even a specific replica if possible) disconnects from the registry/host.</p>
<p dir="auto">I've seen that <a href="https://stackoverflow.com/questions/50683684/qtremoteobject-receive-signal-in-host-when-replicas-are-connected-disconnected" target="_blank" rel="noopener noreferrer nofollow ugc">this question</a> has no answers on stackoverflow.</p>
<p dir="auto">I know the networking model of QtRO is kind of peer-to-peer, so it's hard to detected new connections or lost connections of remote node, but such feature would really help on our project.</p>
<p dir="auto">I've searched here in particular:<br />
<a href="https://doc.qt.io/qt-5/qremoteobjectregistry.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qremoteobjectregistry.html</a><br />
<a href="https://doc.qt.io/qt-5/qremoteobjectnode.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qremoteobjectnode.html</a><br />
<a href="https://doc.qt.io/qt-5/qremoteobjecthost.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qremoteobjecthost.html</a></p>
<p dir="auto">when I close the client qt application, i don't seen any related log on the host side:<img src="https://ddgobkiprc33d.cloudfront.net/e8dda1dc-ee3e-4e59-9fef-782f3693bf53.png" alt="3ce739cb-7979-4f3e-92fe-6bdd1b5d18cc-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">thanks for your support,<br />
regards,<br />
enrico</p>
]]></description><link>https://forum.qt.io/topic/143347/remoteobjects-signal-when-node-or-replica-disconnects-from-host</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 11:10:07 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/143347.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Mar 2023 16:16:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RemoteObjects: signal when node or replica disconnects from host on Thu, 02 Mar 2023 09:28:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> Yes, it is indicative it has no answers. We will try to implement our "heartbeat" or a similar mechanism. thank you</p>
]]></description><link>https://forum.qt.io/post/749708</link><guid isPermaLink="true">https://forum.qt.io/post/749708</guid><dc:creator><![CDATA[enricopapi]]></dc:creator><pubDate>Thu, 02 Mar 2023 09:28:20 GMT</pubDate></item><item><title><![CDATA[Reply to RemoteObjects: signal when node or replica disconnects from host on Thu, 02 Mar 2023 09:22:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enricopapi">@<bdi>enricopapi</bdi></a> said in <a href="/post/749690">RemoteObjects: signal when node or replica disconnects from host</a>:</p>
<blockquote>
<p dir="auto">it would be usefull to know if a remote replica has been attached/detached from an host source</p>
</blockquote>
<p dir="auto">What evidence do you have that upon "or the client application just exited" then the host gets any notification at all?</p>
<p dir="auto">My reading of the <strong>SO</strong> posts etc. is that if the functions I mentioned do not help you would have to write your own "heartbeat" mechanism to detect a client "gone away".  If that <strong>SO</strong> thread is exactly your question and you can see it got no answer other than the comments maybe that is indicative?</p>
]]></description><link>https://forum.qt.io/post/749707</link><guid isPermaLink="true">https://forum.qt.io/post/749707</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 02 Mar 2023 09:22:53 GMT</pubDate></item><item><title><![CDATA[Reply to RemoteObjects: signal when node or replica disconnects from host on Thu, 02 Mar 2023 08:58:29 GMT]]></title><description><![CDATA[<p dir="auto">Hello, thanks for your reply.</p>
<p dir="auto">What we are searching for is a Signal or an API on the <strong>Host side</strong>, to know a replica has been destroyed or the client application just exited.</p>
<p dir="auto">Since the host has all the <em>sources</em> that push data to replicas, it would be usefull to know if a remote replica has been attached/detached from an host source.</p>
<p dir="auto">Sorry my question was not very clear.</p>
]]></description><link>https://forum.qt.io/post/749690</link><guid isPermaLink="true">https://forum.qt.io/post/749690</guid><dc:creator><![CDATA[enricopapi]]></dc:creator><pubDate>Thu, 02 Mar 2023 08:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to RemoteObjects: signal when node or replica disconnects from host on Wed, 01 Mar 2023 17:23:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enricopapi">@<bdi>enricopapi</bdi></a> said in <a href="/post/749587">RemoteObjects: signal when node or replica disconnects from host</a>:</p>
<blockquote>
<p dir="auto">I've seen that this question has no answers on stackoverflow.</p>
</blockquote>
<p dir="auto">Indeed.  But do read the comments.</p>
<p dir="auto">My 2 cents, I have not used QtRO but if <code>stateChanged</code>/<code>remoteObjectRemoved()</code> signals are not being received/<code>isReplicaValid()</code> doesn't help, and the log shows no sign of the disconnection, does this not suggest lost connections are not detected?  Like with sockets.  As one of the comments suggests, you may have to implement heartbeat as the only way to notice something is no longer there?  Only a guess based on reading.</p>
]]></description><link>https://forum.qt.io/post/749592</link><guid isPermaLink="true">https://forum.qt.io/post/749592</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Wed, 01 Mar 2023 17:23:21 GMT</pubDate></item></channel></rss>