<?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[Howto connect QObject set as a QML contextProperty in a separate thread ?]]></title><description><![CDATA[<p dir="auto">I've a QObject which updates values on a QML interface. In order to avoid GUI freezes I've moved the object to another thread i.e.</p>
<pre><code>ClientListWrapper *clients = new ClientListWrapper;
QThread *ClientListWrapper_thread = new QThread();
clients-&gt;moveToThread(ClientListWrapper_thread);
ClientListWrapper_thread-&gt;start();
Engine.rootContext()-&gt;setContextProperty("clients", clients);
</code></pre>
<p dir="auto">I'm using 'clients' as a model in my QML so the values on  the interface are updated by the 'clients' object. But now QML doesn't recognize 'clients' because it is in a separate thread.</p>
<p dir="auto">How should I approach this problem ?</p>
]]></description><link>https://forum.qt.io/topic/135343/howto-connect-qobject-set-as-a-qml-contextproperty-in-a-separate-thread</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 09:34:53 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/135343.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Mar 2022 09:43:58 GMT</pubDate><ttl>60</ttl></channel></rss>