<?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[Qt 6.8&#x2F;6.11: tabified QDockWidget freezes dock-area width after undock — regression from 5.15?]]></title><description><![CDATA[<p dir="auto">I have a QMainWindow with several QDockWidgets tabified together. As soon as I undock one of them (via the title-bar float button or by dragging it out), the width of the docked area gets frozen: the remaining docked widgets no longer stretch to fill the main window when it is resized. An empty region appears on the side and cannot be recovered — resizing the main window does not help, and re-docking the floated widget does not fix it either.<br />
This works correctly on Qt 5.15.2, but is broken on Qt 6.8.3 and Qt 6.11.1 (Windows 11, MSVC 2022 x64, stock kit).</p>
<p dir="auto">Minimal example to reproduce</p>
<pre><code>#include &lt;QApplication&gt;
#include &lt;QMainWindow&gt;
#include &lt;QDockWidget&gt;
#include &lt;QTextEdit&gt;

int main(int argc, char* argv[])
{
    QApplication app(argc, argv);

    QMainWindow window;
    window.resize(900, 700);

    auto* dock1 = new QDockWidget("One", &amp;window);
    dock1 -&gt;setWidget(new QTextEdit("one"));
    window.addDockWidget(Qt::TopDockWidgetArea, dock1);

    auto* dock2 = new QDockWidget("Two", &amp;window);
    dock2-&gt;setWidget(new QTextEdit("two"));
    window.addDockWidget(Qt::TopDockWidgetArea, dock2);

    auto* dock3= new QDockWidget("Three", &amp;window);
    dock3-&gt;setWidget(new QTextEdit("three"));
    window.addDockWidget(Qt::TopDockWidgetArea, dock3);

    window.tabifyDockWidget(dock1, dock2);
    window.tabifyDockWidget(dock2, dock3);

    window.show();
    return app.exec();
}
</code></pre>
<p dir="auto">Steps to reproduce:</p>
<p dir="auto">Build and run on Qt 6.8.3 or 6.11.1.<br />
Undock one of the tabs via its float button (or drag it out of the window).<br />
Resize the main window by dragging its edge.<br />
The docked area keeps its old width and does not expand with the window; an empty region remains and cannot be recovered.</p>
<p dir="auto">Expected: after undock/redock, the docked area keeps filling the main window and resizes normally, as it does on Qt 5.15.2.</p>
<p dir="auto">What I have already tried (none of these fix it on 6.8/6.11):</p>
<ol>
<li>resizeDocks() (both Qt::Horizontal and Qt::Vertical, on build and on topLevelChanged). Note: passing size 0 is now rejected with "all sizes need to be larger than 0".</li>
<li>setFixedWidth(width()) on the docks then restoring min/max, with processEvents().</li>
<li>layout()-&gt;invalidate() followed by layout()-&gt;activate(), plus updateGeometry().</li>
<li>Resizing the main window programmatically by ±1 px (immediately and via QTimer::singleShot(0, ...)).</li>
<li>Setting / clearing setAllowedAreas, removing setSizePolicy, toggling setDockNestingEnabled.</li>
<li>Verified it is unrelated to: central widget visibility, toolbar/statusbar, OpenGL widgets, QMdiArea, high-DPI rounding policy, widget style — the bare 20-line example above reproduces it.</li>
<li>Reproduces in both Qt::TopDockWidgetArea and Qt::LeftDockWidgetArea.</li>
</ol>
<p dir="auto">The only thing that actually restores the correct width is saveState() + restoreState() after the redock, but calling that from within the topLevelChanged handler makes other floating dock widgets disappear / crashes, so it is not a usable workaround as-is.<br />
Questions:</p>
<p dir="auto">Is this a known regression in the Qt 6.x dock layout? (It resembles the long-fixed QTBUG-70571, possibly re-introduced.)<br />
Is there a clean, supported workaround?<br />
Should I file a bug report with this reproducer?</p>
<p dir="auto">Qt 6.8.3 and 6.11.1, Windows 11 (MSVC 2022 x64) and Qt 6.11.1 on Ubuntu 24.04 — reproduces on both platforms.</p>
]]></description><link>https://forum.qt.io/topic/164832/qt-6.8-6.11-tabified-qdockwidget-freezes-dock-area-width-after-undock-regression-from-5.15</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 04:58:39 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164832.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Jun 2026 08:09:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt 6.8&#x2F;6.11: tabified QDockWidget freezes dock-area width after undock — regression from 5.15? on Tue, 30 Jun 2026 11:13:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> said in <a href="/post/838913">Qt 6.8/6.11: tabified QDockWidget freezes dock-area width after undock — regression from 5.15?</a>:</p>
<blockquote>
<p dir="auto">Please wait for Qt 6.11.2 or a new 6.8 version. Take a look into <a href="http://bugreports.qt.io" target="_blank" rel="noopener noreferrer nofollow ugc">bugreports.qt.io</a> - don't have the exact bug number at hand.</p>
</blockquote>
<p dir="auto">Thank you for the quick responce!<br />
I've found the ticket:<br />
<a href="https://qt-project.atlassian.net/browse/QTBUG-147209" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.atlassian.net/browse/QTBUG-147209</a></p>
]]></description><link>https://forum.qt.io/post/838914</link><guid isPermaLink="true">https://forum.qt.io/post/838914</guid><dc:creator><![CDATA[mrFall]]></dc:creator><pubDate>Tue, 30 Jun 2026 11:13:59 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.8&#x2F;6.11: tabified QDockWidget freezes dock-area width after undock — regression from 5.15? on Tue, 30 Jun 2026 09:16:59 GMT]]></title><description><![CDATA[<p dir="auto">Please wait for Qt 6.11.2 or a new 6.8 version. Take a look into <a href="http://bugreports.qt.io" target="_blank" rel="noopener noreferrer nofollow ugc">bugreports.qt.io</a> - don't have the exact bug number at hand.</p>
]]></description><link>https://forum.qt.io/post/838913</link><guid isPermaLink="true">https://forum.qt.io/post/838913</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Tue, 30 Jun 2026 09:16:59 GMT</pubDate></item></channel></rss>