<?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[How to change QScrollArea width when vertical ScrollBar appears?]]></title><description><![CDATA[<p dir="auto">I have QScrollArea where widget with vertical tabbar placed. I want to increase its width when user resizes main window and vertical scrollbar apears (in order to not overlap its contents with appeared scrollbar). How can i do than? SizePolicy::expanding flag  seems not helping.</p>
]]></description><link>https://forum.qt.io/topic/122326/how-to-change-qscrollarea-width-when-vertical-scrollbar-appears</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 13:11:30 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/122326.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jan 2021 12:51:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to change QScrollArea width when vertical ScrollBar appears? on Tue, 05 Jan 2021 21:13:45 GMT]]></title><description><![CDATA[<p dir="auto">Why not set a minimal width that matched what is needed to show the content of the scroll area ?</p>
]]></description><link>https://forum.qt.io/post/636053</link><guid isPermaLink="true">https://forum.qt.io/post/636053</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 05 Jan 2021 21:13:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to change QScrollArea width when vertical ScrollBar appears? on Tue, 05 Jan 2021 08:00:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> I have QFrame widget placed on MainWindow with horizontal layout. On the left part of this QFrame I have QScrollArea with fixed width and vertical layout. On this layout I placed QWidget with many toolbuttons. When user resizes MainWindow and its height decreases, part of tool buttons goes to invisible part of scrollArea and scrollbar apears. I want to increase width of this scroll area when this happens, in order to not overlap its contents with appeared scrollbar.<br />
I've tried to set the minimum and maximum widths differing by the horizontal size of this scrollbar, and set horizontalSizePolicy :: Expanding, but it didn't help.</p>
]]></description><link>https://forum.qt.io/post/635930</link><guid isPermaLink="true">https://forum.qt.io/post/635930</guid><dc:creator><![CDATA[August Wiener]]></dc:creator><pubDate>Tue, 05 Jan 2021 08:00:38 GMT</pubDate></item><item><title><![CDATA[Reply to How to change QScrollArea width when vertical ScrollBar appears? on Mon, 04 Jan 2021 20:11:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Your description is not really clear. How did you setup your widgets ?</p>
]]></description><link>https://forum.qt.io/post/635823</link><guid isPermaLink="true">https://forum.qt.io/post/635823</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 04 Jan 2021 20:11:24 GMT</pubDate></item></channel></rss>