<?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[Height of QWidget containing two QLabels]]></title><description><![CDATA[<p dir="auto">I've got a widget using a vertical layout that contains two labels.</p>
<p dir="auto">The height for each label is 16 according to designer but the widget ends up 52 high.</p>
<p dir="auto">Where did the remaining 20 pixels go?</p>
<p dir="auto">How to adjust things so the widget only takes (say) 6 pixels more that the sum of the heights of its contents?</p>
<p dir="auto">Thanks<br />
David</p>
]]></description><link>https://forum.qt.io/topic/145697/height-of-qwidget-containing-two-qlabels</link><generator>RSS for Node</generator><lastBuildDate>Sun, 25 Oct 2026 19:52:46 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145697.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Jun 2023 12:46:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Height of QWidget containing two QLabels on Sun, 11 Jun 2023 13:14:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/perdrix">@<bdi>Perdrix</bdi></a><br />
Look at the contents margins and spacing default values for layout in the designer.</p>
]]></description><link>https://forum.qt.io/post/761129</link><guid isPermaLink="true">https://forum.qt.io/post/761129</guid><dc:creator><![CDATA[mpergand]]></dc:creator><pubDate>Sun, 11 Jun 2023 13:14:02 GMT</pubDate></item><item><title><![CDATA[Reply to Height of QWidget containing two QLabels on Sun, 11 Jun 2023 13:31:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mpergand">@<bdi>mpergand</bdi></a> Thank you - that's what I needed!!!</p>
<p dir="auto">I adjusted the layout top and bottom margins to 2 and also the spacing to 2.</p>
<p dir="auto">That worked a treat!<br />
Thanks again, David</p>
]]></description><link>https://forum.qt.io/post/761131</link><guid isPermaLink="true">https://forum.qt.io/post/761131</guid><dc:creator><![CDATA[Perdrix]]></dc:creator><pubDate>Sun, 11 Jun 2023 13:31:34 GMT</pubDate></item><item><title><![CDATA[Reply to Height of QWidget containing two QLabels on Sun, 11 Jun 2023 13:14:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/perdrix">@<bdi>Perdrix</bdi></a><br />
Look at the contents margins and spacing default values for layout in the designer.</p>
]]></description><link>https://forum.qt.io/post/761129</link><guid isPermaLink="true">https://forum.qt.io/post/761129</guid><dc:creator><![CDATA[mpergand]]></dc:creator><pubDate>Sun, 11 Jun 2023 13:14:02 GMT</pubDate></item></channel></rss>