<?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[Running action at start of the programm]]></title><description><![CDATA[<p dir="auto">I have my custom class inheriting QMainWindow and I want it to show a dialog as the very first thing that happens when application starts.</p>
<p dir="auto">My first idea, was to run exec() on dialog in constructor of my class, but it meant code would run before QApplication.exec() and I don't think that should be the case.</p>
<p dir="auto">How do I handle actions, that should happen before user does anything or main window is even shown?</p>
]]></description><link>https://forum.qt.io/topic/109859/running-action-at-start-of-the-programm</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 20:35:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/109859.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Dec 2019 16:39:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Running action at start of the programm on Tue, 17 Dec 2019 18:10:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/halftough">@<bdi>HalfTough</bdi></a><br />
Another possibility is that your case may be remarkably similar to the recent <a href="https://forum.qt.io/topic/109802/how-can-i-show-an-other-widget-or-dialog-before-mainwindow">https://forum.qt.io/topic/109802/how-can-i-show-an-other-widget-or-dialog-before-mainwindow</a> ?  There a <code>QSplashScreen</code> turned out to be just what was wanted.</p>
]]></description><link>https://forum.qt.io/post/567868</link><guid isPermaLink="true">https://forum.qt.io/post/567868</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Tue, 17 Dec 2019 18:10:41 GMT</pubDate></item><item><title><![CDATA[Reply to Running action at start of the programm on Tue, 17 Dec 2019 17:25:02 GMT]]></title><description><![CDATA[<p dir="auto">Simply use a signal/slot connection to call show() only when the login screen was successful.</p>
]]></description><link>https://forum.qt.io/post/567863</link><guid isPermaLink="true">https://forum.qt.io/post/567863</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Tue, 17 Dec 2019 17:25:02 GMT</pubDate></item></channel></rss>