<?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[Showing a QWidget in a separate thread]]></title><description><![CDATA[<p dir="auto">I made a widget for splash screen. It will open before MainWindow opens, but when calling MainWindow, Splash Screen freezes for a while until MainWindow opens. I want to open the Splash Screen widget to another thread in main.cpp so that it does not freeze. Can you help me?</p>
]]></description><link>https://forum.qt.io/topic/138280/showing-a-qwidget-in-a-separate-thread</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 23:39:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/138280.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 31 Jul 2022 05:50:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Showing a QWidget in a separate thread on Sun, 31 Jul 2022 07:12:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leftdad">@<bdi>LeftDad</bdi></a><br />
Hello and welcome.</p>
<p dir="auto">You <em>cannot/must not</em> do any Qt UI operations from any secondary thread.  Only the main, UI thread is allowed to do anything to widgets etc.  So that is not the way to do it.</p>
<p dir="auto">Find out/show what it is that you are doing which causes a problem.  Qt provides a <a href="https://doc.qt.io/qt-6/qsplashscreen.html" target="_blank" rel="noopener noreferrer nofollow ugc">QSplashScreen class</a> intended for just this purpose.</p>
]]></description><link>https://forum.qt.io/post/723348</link><guid isPermaLink="true">https://forum.qt.io/post/723348</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 31 Jul 2022 07:12:50 GMT</pubDate></item></channel></rss>