<?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[Creating wait screen]]></title><description><![CDATA[<p dir="auto">Hello group,</p>
<p dir="auto">I was trying to create a screen(widget) which would display some wait symbol, while there is some background work is going on.<br />
Can i display a new widget on a different(new) thread? I don't have much idea about multithread programming. So if you guys can suggest me some resources, it will be very helpful to me :)</p>
<p dir="auto">Thanks &amp; Regards,<br />
Durgesh K</p>
]]></description><link>https://forum.qt.io/topic/8314/creating-wait-screen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 03:07:57 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/8314.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Aug 2011 18:42:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Creating wait screen on Sat, 13 Aug 2011 15:00:33 GMT]]></title><description><![CDATA[<p dir="auto">Unfortunately, a QProgressBar would suffer from the same shortcomings as a QProgressDialog if the main event loop is blocked by the work in progress.  DurgeshK mentioned that his processing is running 3rd-party code, so there's no way to process events during the work being done.</p>
]]></description><link>https://forum.qt.io/post/105048</link><guid isPermaLink="true">https://forum.qt.io/post/105048</guid><dc:creator><![CDATA[mlong]]></dc:creator><pubDate>Sat, 13 Aug 2011 15:00:33 GMT</pubDate></item><item><title><![CDATA[Reply to Creating wait screen on Sat, 13 Aug 2011 09:24:04 GMT]]></title><description><![CDATA[<p dir="auto">You can always try to use "QProgressBar":<a href="http://doc.qt.nokia.com/latest/qprogressbar.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/latest/qprogressbar.html</a>, set its minimum and maximum to 0 and its value to -1. And you get busy indicator without any progress only indicating that something is loading.</p>
]]></description><link>https://forum.qt.io/post/104995</link><guid isPermaLink="true">https://forum.qt.io/post/104995</guid><dc:creator><![CDATA[MichK]]></dc:creator><pubDate>Sat, 13 Aug 2011 09:24:04 GMT</pubDate></item><item><title><![CDATA[Reply to Creating wait screen on Thu, 11 Aug 2011 06:57:06 GMT]]></title><description><![CDATA[<p dir="auto">Thanks guys for the answers, atleast now i know what not to try.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sigrid">@<bdi>sigrid</bdi></a>, if i use QProgressDialog then i will have to use qApp-&gt;processEvents(), in order to update the QProgressDialog, and since at the background i am running third party DLL, i can't update QProgressDialog properly.</p>
]]></description><link>https://forum.qt.io/post/104495</link><guid isPermaLink="true">https://forum.qt.io/post/104495</guid><dc:creator><![CDATA[durgeshK]]></dc:creator><pubDate>Thu, 11 Aug 2011 06:57:06 GMT</pubDate></item><item><title><![CDATA[Reply to Creating wait screen on Mon, 08 Aug 2011 09:02:39 GMT]]></title><description><![CDATA[<p dir="auto">Also, note that you can use "QProgressDialog":<a href="http://doc.qt.nokia.com/4.7/qprogressdialog.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/4.7/qprogressdialog.html</a> to provide feedback on the progress of a slow operation.</p>
]]></description><link>https://forum.qt.io/post/103928</link><guid isPermaLink="true">https://forum.qt.io/post/103928</guid><dc:creator><![CDATA[sigrid]]></dc:creator><pubDate>Mon, 08 Aug 2011 09:02:39 GMT</pubDate></item><item><title><![CDATA[Reply to Creating wait screen on Sat, 06 Aug 2011 03:54:35 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="mlong" date="1312577075"]You can't display a widget in a separate thread.  All GUI elements have to run in the main thread.  Your best bet would be to move your processing to a separate thread.</p>
<p dir="auto">There's a nice "wiki page":<a href="http://developer.qt.nokia.com/wiki/Threads_Events_QObjects" target="_blank" rel="noopener noreferrer nofollow ugc">http://developer.qt.nokia.com/wiki/Threads_Events_QObjects</a> about threading available too.<br />
[/quote]</p>
<p dir="auto">Ah, didn't know that, thanks, mlong!</p>
]]></description><link>https://forum.qt.io/post/103763</link><guid isPermaLink="true">https://forum.qt.io/post/103763</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Sat, 06 Aug 2011 03:54:35 GMT</pubDate></item><item><title><![CDATA[Reply to Creating wait screen on Fri, 05 Aug 2011 20:44:35 GMT]]></title><description><![CDATA[<p dir="auto">You can't display a widget in a separate thread.  All GUI elements have to run in the main thread.  Your best bet would be to move your processing to a separate thread.</p>
<p dir="auto">There's a nice "wiki page":<a href="http://developer.qt.nokia.com/wiki/Threads_Events_QObjects" target="_blank" rel="noopener noreferrer nofollow ugc">http://developer.qt.nokia.com/wiki/Threads_Events_QObjects</a> about threading available too.</p>
]]></description><link>https://forum.qt.io/post/103742</link><guid isPermaLink="true">https://forum.qt.io/post/103742</guid><dc:creator><![CDATA[mlong]]></dc:creator><pubDate>Fri, 05 Aug 2011 20:44:35 GMT</pubDate></item><item><title><![CDATA[Reply to Creating wait screen on Fri, 05 Aug 2011 19:18:55 GMT]]></title><description><![CDATA[<p dir="auto">Of course you can push the widget into a new thread. But be mindful about it - you'll need a new class (namely, QThread subclass), and there is the thing of communicating with main thread (your app), which again involves some writing. If you want to go for it, then  you might want to prevent your widget from accepting events (it won't need them anyway), which may speed things up a bit in some situations.</p>
<p dir="auto">IMO, better solution is to leave the widget in main thread, as it won't do much work anyway.</p>
]]></description><link>https://forum.qt.io/post/103730</link><guid isPermaLink="true">https://forum.qt.io/post/103730</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Fri, 05 Aug 2011 19:18:55 GMT</pubDate></item></channel></rss>