<?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[Design time layout different from runtime]]></title><description><![CDATA[<p dir="auto">I design a dialog with <code>QFormLayout</code>:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/643bef00-8e95-41f2-b886-1e8145884c38.png" alt="Screenshot 2026-03-22 094140.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Why is the layout on the left at runtime so different from the layout at design time on the right?  If it's going to squeeze the rows vertically at runtime that's fine, but why show them spread out vertically at design time then?  This sort of discrepancy is annoying.</p>
<p dir="auto">I have no special settings/spacings etc. on the dialog or layout.  I have to use <strong>Creator 13</strong>, I know it's not the latest but I doubt it's a version issue?  Using Qt 6.4.2 under Ubuntu 24.04, GNOME, with Xorg.</p>
]]></description><link>https://forum.qt.io/topic/164466/design-time-layout-different-from-runtime</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 23:46:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164466.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Mar 2026 09:48:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Design time layout different from runtime on Mon, 23 Mar 2026 08:11:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jeremy_k">@<bdi>jeremy_k</bdi></a><br />
Thanks for that one.  <strong>Alt+Shift+R</strong> for me Linux too.  I would not have realised this was a <strong>Tools</strong> menu thing.</p>
<p dir="auto">I'd still like to know whether the <code>QFormLayout</code> vertical spacing is "unavoidable" because it varies per style at runtime or whether it should really be shown "squeezed" at design time because all styles do so anyway....</p>
]]></description><link>https://forum.qt.io/post/837254</link><guid isPermaLink="true">https://forum.qt.io/post/837254</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 23 Mar 2026 08:11:58 GMT</pubDate></item><item><title><![CDATA[Reply to Design time layout different from runtime on Mon, 23 Mar 2026 03:56:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> said in <a href="/post/837243">Design time layout different from runtime</a>:</p>
<blockquote>
<p dir="auto">Btw, is there a way in Designer to preview the final look at runtime without having to run the program? I kinda thought I remembered an Alt-D but that does not seem to do so, maybe mixing up with another IDE.</p>
</blockquote>
<p dir="auto"><code>Tools</code> -&gt; <code>Form Editor</code> -&gt; <code>Preview...</code> (alt-shift-r on macOS)<br />
The <code>Preview In</code> submenu below it offers previews in a few styles.</p>
]]></description><link>https://forum.qt.io/post/837250</link><guid isPermaLink="true">https://forum.qt.io/post/837250</guid><dc:creator><![CDATA[jeremy_k]]></dc:creator><pubDate>Mon, 23 Mar 2026 03:56:20 GMT</pubDate></item><item><title><![CDATA[Reply to Design time layout different from runtime on Sun, 22 Mar 2026 12:26:45 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>
<ul>
<li>Either the same one as you designing/running on (I never set the style, so it's always platform default); and</li>
<li>Looking at the 4 dialog style pictures in <a href="https://doc.qt.io/qt-6/qformlayout.html#details" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qformlayout.html#details</a> and assuming they are runtime pix, although I admit it's hard to tell none of them show any evidence of "vertical stretching" of the rows.  Unless that is the case on some platforms (is it actually?), the obvious answer is to show "squeezed" rather than "spaced" at design time too....</li>
</ul>
<p dir="auto">I know you are not a great fan of UI design.  I am not too, and I won't die over it.  But when one does use it one wants it to be as close as possible to runtime, unless there is a <em>good</em> reason not to be.</p>
<p dir="auto">Btw, is there a way in <strong>Designer</strong> to preview the final look at runtime without having to run the program?  I kinda thought I remembered an <strong>Alt-D</strong> but that does not seem to do so, maybe mixing up with another IDE.</p>
]]></description><link>https://forum.qt.io/post/837243</link><guid isPermaLink="true">https://forum.qt.io/post/837243</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 22 Mar 2026 12:26:45 GMT</pubDate></item><item><title><![CDATA[Reply to Design time layout different from runtime on Sun, 22 Mar 2026 11:48:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> said in <a href="/post/837241">Design time layout different from runtime</a>:</p>
<blockquote>
<p dir="auto">It knows it's a QFormLayout just as much when designing as running.</p>
</blockquote>
<p dir="auto">What guidline should it follow during design? <a href="https://doc.qt.io/qt-6/qformlayout.html#details" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qformlayout.html#details</a></p>
]]></description><link>https://forum.qt.io/post/837242</link><guid isPermaLink="true">https://forum.qt.io/post/837242</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sun, 22 Mar 2026 11:48:57 GMT</pubDate></item><item><title><![CDATA[Reply to Design time layout different from runtime on Sun, 22 Mar 2026 11:15:49 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/837240">Design time layout different from runtime</a>:</p>
<blockquote>
<p dir="auto">It's a feature of QFormLayout - it creates a properly aligned two-column layout and aligns them on top</p>
</blockquote>
<p dir="auto">I'm sure it is, that was not the question.  The question is: given that, why does it not show that at design time (it shows the horizontal positioning but not correctly the vertical positioning), why only at runtime?  It knows it's a <code>QFormLayout</code> just as much when designing as running.</p>
<p dir="auto">If you are going to have a visual editor, part of the whole point is that it shows at design as it will at run.  I know there are difficult or edge or even platform-specific cases where that might not possible, but what makes it so here?  I don't think this is a  trivial point/question, could you give an indication as to why this case does not work like that?  Is this specific to <code>QFormLayout</code>, it makes me have no trust that e.g. any layout will look the same when it seems easy to make it so?</p>
]]></description><link>https://forum.qt.io/post/837241</link><guid isPermaLink="true">https://forum.qt.io/post/837241</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 22 Mar 2026 11:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to Design time layout different from runtime on Sun, 22 Mar 2026 10:59:55 GMT]]></title><description><![CDATA[<p dir="auto"><s>Your are missing a layout and/or a proper spacer between the widgets and the dialog button box.</s></p>
<p dir="auto">It's a feature of QFormLayout - it creates a properly aligned two-column layout and aligns them on top</p>
]]></description><link>https://forum.qt.io/post/837240</link><guid isPermaLink="true">https://forum.qt.io/post/837240</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sun, 22 Mar 2026 10:59:55 GMT</pubDate></item></channel></rss>