<?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[QApplication::activeWindow() working incorrectly]]></title><description><![CDATA[<p dir="auto">Hello everyone!</p>
<pre><code>QMessageBox::information(QApplication::activeWindow(),"Error",
                    query.lastError().text(),QMessageBox::Ok);
</code></pre>
<p dir="auto">When I use this construct, the QMESSAGEBOX returns an empty one with no message. The message is sent from another class that does not have widgets.</p>
]]></description><link>https://forum.qt.io/topic/125845/qapplication-activewindow-working-incorrectly</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 06:39:42 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/125845.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Apr 2021 11:23:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QApplication::activeWindow() working incorrectly on Thu, 22 Apr 2021 09:43:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a></p>
<p dir="auto">thanks for the help. Your tips helped solve the problem!</p>
]]></description><link>https://forum.qt.io/post/655893</link><guid isPermaLink="true">https://forum.qt.io/post/655893</guid><dc:creator><![CDATA[iddqd 0]]></dc:creator><pubDate>Thu, 22 Apr 2021 09:43:34 GMT</pubDate></item><item><title><![CDATA[Reply to QApplication::activeWindow() working incorrectly on Mon, 19 Apr 2021 12:06:23 GMT]]></title><description><![CDATA[<p dir="auto">Ok, fine. Can you create a minimal example to reproduce the problem? It looks like a QMessageBox in main() should also trigger your issue.</p>
]]></description><link>https://forum.qt.io/post/655357</link><guid isPermaLink="true">https://forum.qt.io/post/655357</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Mon, 19 Apr 2021 12:06:23 GMT</pubDate></item><item><title><![CDATA[Reply to QApplication::activeWindow() working incorrectly on Mon, 19 Apr 2021 12:04:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> I'm using version 6.0.2. Yes, in main  thread</p>
]]></description><link>https://forum.qt.io/post/655356</link><guid isPermaLink="true">https://forum.qt.io/post/655356</guid><dc:creator><![CDATA[iddqd 0]]></dc:creator><pubDate>Mon, 19 Apr 2021 12:04:29 GMT</pubDate></item><item><title><![CDATA[Reply to QApplication::activeWindow() working incorrectly on Mon, 19 Apr 2021 11:55:33 GMT]]></title><description><![CDATA[<p dir="auto">What Qt version do you use? Is this called from the main thread?</p>
]]></description><link>https://forum.qt.io/post/655355</link><guid isPermaLink="true">https://forum.qt.io/post/655355</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Mon, 19 Apr 2021 11:55:33 GMT</pubDate></item><item><title><![CDATA[Reply to QApplication::activeWindow() working incorrectly on Mon, 19 Apr 2021 11:54:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> <img src="https://ddgobkiprc33d.cloudfront.net/b199e5c0-a57a-4d5c-ac46-d4ba972f4f41.PNG" alt="ук.PNG" class=" img-fluid img-markdown" /><br />
instead of a window with an error message, I get just an empty window</p>
]]></description><link>https://forum.qt.io/post/655354</link><guid isPermaLink="true">https://forum.qt.io/post/655354</guid><dc:creator><![CDATA[iddqd 0]]></dc:creator><pubDate>Mon, 19 Apr 2021 11:54:04 GMT</pubDate></item><item><title><![CDATA[Reply to QApplication::activeWindow() working incorrectly on Mon, 19 Apr 2021 11:34:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/iddqd-0">@<bdi>iddqd-0</bdi></a> What happens if you don't set parent? Setting parent or not should not have any influence on the content of the message box. What does query.lastError().text() return?</p>
]]></description><link>https://forum.qt.io/post/655352</link><guid isPermaLink="true">https://forum.qt.io/post/655352</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 19 Apr 2021 11:34:12 GMT</pubDate></item><item><title><![CDATA[Reply to QApplication::activeWindow() working incorrectly on Mon, 19 Apr 2021 11:33:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/iddqd-0">@<bdi>iddqd-0</bdi></a> said in <a href="/post/655350">QApplication::activeWindow() working incorrectly</a>:</p>
<blockquote>
<p dir="auto">QMESSAGEBOX returns an empty one with no message</p>
</blockquote>
<p dir="auto">What does this mean?</p>
]]></description><link>https://forum.qt.io/post/655351</link><guid isPermaLink="true">https://forum.qt.io/post/655351</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Mon, 19 Apr 2021 11:33:56 GMT</pubDate></item></channel></rss>