<?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[Styling a QTabWidget to have the Tab-button on left side and horizontal text]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I am trying to figure out how make my QTabWidget look like this:</p>
<p dir="auto"><img src="http://i47.tinypic.com/ohpt06.png" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">P.S. I dont use Python but C++.</p>
<p dir="auto">I followed the example found in this code: <a href="https://forum.qt.io/topic/86186/horizontal-text-in-qtabwidget/2">https://forum.qt.io/topic/86186/horizontal-text-in-qtabwidget/2</a></p>
<p dir="auto">But as you can see my result below is a bit different. First of all the tab text is not known. It does not matter if I change its color:</p>
<pre><code>ui-&gt;setupUi(this);
ui-&gt;tabWidget-&gt;tabBar()-&gt;setStyle(new CustomTabStyle);
ui-&gt;tabWidget-&gt;tabBar()-&gt;setTabTextColor(0, Qt::red);
</code></pre>
<p dir="auto"><img src="https://i.imgur.com/nrKVsNc.png" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">Also it seems for some reason I canot not change the width. I also wishes to make the content inside the tabs horizontal.</p>
<p dir="auto">Thanks for guidance!</p>
]]></description><link>https://forum.qt.io/topic/96242/styling-a-qtabwidget-to-have-the-tab-button-on-left-side-and-horizontal-text</link><generator>RSS for Node</generator><lastBuildDate>Fri, 05 Jun 2026 22:08:11 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/96242.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 03 Nov 2018 10:37:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Styling a QTabWidget to have the Tab-button on left side and horizontal text on Sun, 04 Nov 2018 09:41:31 GMT]]></title><description><![CDATA[<p dir="auto">That works great! Thank you. This topic can be set as solved.</p>
]]></description><link>https://forum.qt.io/post/491087</link><guid isPermaLink="true">https://forum.qt.io/post/491087</guid><dc:creator><![CDATA[RobinQT]]></dc:creator><pubDate>Sun, 04 Nov 2018 09:41:31 GMT</pubDate></item><item><title><![CDATA[Reply to Styling a QTabWidget to have the Tab-button on left side and horizontal text on Sun, 04 Nov 2018 16:41:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robinqt">@<bdi>RobinQT</bdi></a><br />
Hi<br />
Its a little bit surprising as clean project with the Delegate gives me<br />
<img src="http://imagizer.imageshack.com/img921/4194/aqkWYz.png" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">Could you try test project ?<br />
<a href="https://www.dropbox.com/s/llv3hpufux5owyh/VertTab.zip?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.dropbox.com/s/llv3hpufux5owyh/VertTab.zip?dl=0</a><br />
and see if that just works or have issues.</p>
]]></description><link>https://forum.qt.io/post/491084</link><guid isPermaLink="true">https://forum.qt.io/post/491084</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sun, 04 Nov 2018 16:41:35 GMT</pubDate></item><item><title><![CDATA[Reply to Styling a QTabWidget to have the Tab-button on left side and horizontal text on Sun, 04 Nov 2018 08:28:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> ! Yes I used the example at it is. Here is my information:</p>
<pre><code>Qt 5.11.2 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2015) on "windows" 
OS: Windows 10 (10.0) [winnt version 10.0.17134]
</code></pre>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.qt.io/post/491080</link><guid isPermaLink="true">https://forum.qt.io/post/491080</guid><dc:creator><![CDATA[RobinQT]]></dc:creator><pubDate>Sun, 04 Nov 2018 08:28:15 GMT</pubDate></item><item><title><![CDATA[Reply to Styling a QTabWidget to have the Tab-button on left side and horizontal text on Sat, 03 Nov 2018 23:14:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Did you use the example as is ?<br />
What version of Qt are you using ?<br />
On what version of Windows ?</p>
]]></description><link>https://forum.qt.io/post/491050</link><guid isPermaLink="true">https://forum.qt.io/post/491050</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 03 Nov 2018 23:14:27 GMT</pubDate></item></channel></rss>