<?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[QScrollArea hates QTabWidget ?]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Sorry if this is dupe, I searched and while I found a bunch of (old) threads nothing that seemed to be the same problem.</p>
<p dir="auto">Basically I have a QTabWidget that has about 7 tabs.</p>
<p dir="auto">I'm trying to put the tab widget inside a scroll area.</p>
<p dir="auto">My goal is to have the scroll area resize itself and contents so that the tab<br />
widget fits and there is <em>no</em> horizontal scrolling needed.</p>
<p dir="auto">But whatever I do when I remove horizontal scrolling the scroll area will figure out a size where the tab widget will be clipped horizontally. Even the little buttons to move to a different tab won't appear.</p>
<p dir="auto">Is there a right way to do this?</p>
<p dir="auto">My QScrollArea has Preferred, Preferred size policy, No horizontal scroll bars. Resize widgets is enabled.</p>
<p dir="auto">I tried the tab widget with Preferred, Preferred, Minimum,Maximum etc and none seems to work....</p>
<p dir="auto">Thanks for any tips!</p>
]]></description><link>https://forum.qt.io/topic/146218/qscrollarea-hates-qtabwidget</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 08:34:52 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/146218.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Jul 2023 16:09:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QScrollArea hates QTabWidget ? on Tue, 19 Sep 2023 09:12:20 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/0105f950-f536-4bda-8a7f-6b4eeb4189df.png" alt="1d9519bb-45a5-4f95-80af-9a0f1014bbdf-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Things in the middle getting squished, I have no idea why. The vertical size policy is preferred.</p>
<p dir="auto">The list widget at the top is set to minimumExpanding.</p>
<p dir="auto">The bottom most groupbox has also  preferred vertical size policy. But this isn't getting squished.</p>
<p dir="auto">why.....</p>
]]></description><link>https://forum.qt.io/post/773137</link><guid isPermaLink="true">https://forum.qt.io/post/773137</guid><dc:creator><![CDATA[SamiV123]]></dc:creator><pubDate>Tue, 19 Sep 2023 09:12:20 GMT</pubDate></item><item><title><![CDATA[Reply to QScrollArea hates QTabWidget ? on Tue, 19 Sep 2023 08:25:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">Continuing my endless grind and fight with QScrollarea..</p>
<p dir="auto">what should I call exactly?</p>
<p dir="auto">adjustSize() ? On what widget? The scroll area or the scroll area widget contents ?</p>
<p dir="auto">I'm really having no luck with this, it's always effed up in some way.</p>
]]></description><link>https://forum.qt.io/post/773136</link><guid isPermaLink="true">https://forum.qt.io/post/773136</guid><dc:creator><![CDATA[SamiV123]]></dc:creator><pubDate>Tue, 19 Sep 2023 08:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to QScrollArea hates QTabWidget ? on Wed, 05 Jul 2023 19:34:33 GMT]]></title><description><![CDATA[<p dir="auto">When you change tab.</p>
]]></description><link>https://forum.qt.io/post/763743</link><guid isPermaLink="true">https://forum.qt.io/post/763743</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 05 Jul 2023 19:34:33 GMT</pubDate></item><item><title><![CDATA[Reply to QScrollArea hates QTabWidget ? on Wed, 05 Jul 2023 07:11:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">Hi, what do you mean by "switch widgets" ?</p>
]]></description><link>https://forum.qt.io/post/763674</link><guid isPermaLink="true">https://forum.qt.io/post/763674</guid><dc:creator><![CDATA[SamiV123]]></dc:creator><pubDate>Wed, 05 Jul 2023 07:11:18 GMT</pubDate></item><item><title><![CDATA[Reply to QScrollArea hates QTabWidget ? on Tue, 04 Jul 2023 18:27:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">If memory serves well, for that kind of thing to happen, you need to trigger a resize of your QScrollArea when you switch widgets so it can resize the way you want it.</p>
]]></description><link>https://forum.qt.io/post/763613</link><guid isPermaLink="true">https://forum.qt.io/post/763613</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 04 Jul 2023 18:27:54 GMT</pubDate></item><item><title><![CDATA[Reply to QScrollArea hates QTabWidget ? on Tue, 04 Jul 2023 16:59:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/samiv123">@<bdi>SamiV123</bdi></a></p>
<p dir="auto">This is how everything looks in the <em>Qt Designer</em></p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/7d8d7680-8957-4d7a-8f61-0b2d256b447e.png" alt="1793499b-2b62-4c86-99d4-d9dec68a2fbc-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This is the reality when using 'Expanding' size policy on the scroll area.</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/45638820-171a-4f54-9e2f-d0f452458a2f.png" alt="8224e9bb-4ba5-47bb-8345-01a7c1c842fe-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Finally this is the reality when using 'Preferred' size policy on the scroll area.</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/2c3e6bb6-a66a-4057-9b63-d141f5a7583e.png" alt="7a81e732-ec81-4083-9091-3b1f1d0db67b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The result that I get in designer is what I'd like in reality.</p>
<p dir="auto">The wildly expanding one is the only way I can make it not clip but it's really just not usable as such.</p>
<p dir="auto">And the clipping one is not usable because sideways scrolling really sucks. (in general)</p>
<p dir="auto">Why is this such a PITA? This is about 180 from WYSIWYG and is an overall garbage dev UX.</p>
]]></description><link>https://forum.qt.io/post/763606</link><guid isPermaLink="true">https://forum.qt.io/post/763606</guid><dc:creator><![CDATA[SamiV123]]></dc:creator><pubDate>Tue, 04 Jul 2023 16:59:49 GMT</pubDate></item></channel></rss>