<?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[QLabel() setScaledContents and toolbars&#x2F;menubars]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I'm creating an application that displays an image inside of a QMainWindow using QLabel. With setScaledContents, everything works perfectly except for one minor thing. When an image is scaled to fit the size of the window, it does not account for the menu bar nor the tool bar. Thus, part of the image isn't shown as both the menu bar and the tool bar are covering it. Is there a way around this functionality?</p>
<p dir="auto">Thanks,<br />
Mandeep</p>
]]></description><link>https://forum.qt.io/topic/69690/qlabel-setscaledcontents-and-toolbars-menubars</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 21:11:36 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/69690.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Jul 2016 14:50:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QLabel() setScaledContents and toolbars&#x2F;menubars on Wed, 03 Aug 2016 05:32:24 GMT]]></title><description><![CDATA[<p dir="auto">They are called by QMainWindow. With setCentralWidget() I was able to resolve the issue by adding in pixels to the height of the QMainWindow to make up for the difference in space.</p>
]]></description><link>https://forum.qt.io/post/340529</link><guid isPermaLink="true">https://forum.qt.io/post/340529</guid><dc:creator><![CDATA[mandeepb]]></dc:creator><pubDate>Wed, 03 Aug 2016 05:32:24 GMT</pubDate></item><item><title><![CDATA[Reply to QLabel() setScaledContents and toolbars&#x2F;menubars on Thu, 28 Jul 2016 14:17:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mandeepb">@<bdi>mandeepb</bdi></a><br />
how do you add the QLabel, status-bar and tool-bar to the main window?<br />
By setting it via setCentralWidget() the described effect doesn't occur of course, since it doesn't make any sense that the tool- and status-bar overlap the content widget.</p>
]]></description><link>https://forum.qt.io/post/339759</link><guid isPermaLink="true">https://forum.qt.io/post/339759</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Thu, 28 Jul 2016 14:17:47 GMT</pubDate></item></channel></rss>