<?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[QThread question]]></title><description><![CDATA[<p dir="auto">I'm currently writing an app that uses an instance of QThread to query a db while allowing a dialog on the GUI to display an activity image. However, the problem is that a QVariantList that is accessed and populated by the thread becomes unavailable to the GUI (written in QML btw) after the thread has finished executing. How do I ensure that the QVariantList is still accessible after the thread has finished executing?</p>
<p dir="auto">Regards</p>
<p dir="auto">Angus</p>
]]></description><link>https://forum.qt.io/topic/12137/qthread-question</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 03:30:07 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/12137.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Dec 2011 14:09:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QThread question on Mon, 12 Dec 2011 18:19:51 GMT]]></title><description><![CDATA[<p dir="auto">If the QVariantList is a member of the thread class, it's clear why tit is away when the thread object is destroyed.<br />
Make the list a membre of the ui or create it in the thread object and send it via signal/slot or whatever. Don't access the same data object from different threads without synchronising it (which will be difficult in qml!).</p>
]]></description><link>https://forum.qt.io/post/120252</link><guid isPermaLink="true">https://forum.qt.io/post/120252</guid><dc:creator><![CDATA[giesbert]]></dc:creator><pubDate>Mon, 12 Dec 2011 18:19:51 GMT</pubDate></item><item><title><![CDATA[Reply to QThread question on Mon, 12 Dec 2011 17:52:20 GMT]]></title><description><![CDATA[<p dir="auto">What do you mean with that? It's a value class. Just don't destroy it but keep it somewhere.</p>
]]></description><link>https://forum.qt.io/post/120249</link><guid isPermaLink="true">https://forum.qt.io/post/120249</guid><dc:creator><![CDATA[dangelog]]></dc:creator><pubDate>Mon, 12 Dec 2011 17:52:20 GMT</pubDate></item></channel></rss>