<?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[QMdiArea- Close all Subwindows]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have QMainWindow which has QMdiArea and  I am trying to pop up a message box with QTreeView which displays Unsaved sub-windows list with a confirmation message whether user wants to Save-No-Cancel them as buttons on it.</p>
<pre><code>As I click on QMianWindow close button(X) it  brings up Confirmation Message Dialog Box and gets the user response.After that current QMdiSubwindow is loosing focus as active sub-window and QMdiArea.subWindowList(order=ActivationHistoryOrder)  is always gving me sub-windowslist in CreationOrder even after setting the QMdiArea.setActivationOrder(ActivationHistoryOrder)
</code></pre>
<p dir="auto">Basically i am trying to get the un saved QMdiSubWindows and close them one by one based on ActivationHistoryOrder and some other condition</p>
<p dir="auto">Why QMdiArea is loosing current subwindow focus when i bring DialogBox?.</p>
]]></description><link>https://forum.qt.io/topic/7397/qmdiarea-close-all-subwindows</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Nov 2026 12:02:47 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/7397.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Jul 2011 14:45:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QMdiArea- Close all Subwindows on Thu, 07 Jul 2011 22:48:48 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for reply. actually its my mistake and i resolved it</p>
]]></description><link>https://forum.qt.io/post/96778</link><guid isPermaLink="true">https://forum.qt.io/post/96778</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 07 Jul 2011 22:48:48 GMT</pubDate></item><item><title><![CDATA[Reply to QMdiArea- Close all Subwindows on Thu, 07 Jul 2011 18:40:03 GMT]]></title><description><![CDATA[<p dir="auto">Why you need focus?  You can obtain unsaved documents by iterating over all child windows and checking their dirty flag (isWindowModified).</p>
]]></description><link>https://forum.qt.io/post/96771</link><guid isPermaLink="true">https://forum.qt.io/post/96771</guid><dc:creator><![CDATA[soroush]]></dc:creator><pubDate>Thu, 07 Jul 2011 18:40:03 GMT</pubDate></item></channel></rss>