<?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[changing border of QTabWidget]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I simply would like to show/hide general borders of a QTabWidget. For instance : delete the grey line above the tabs here : .![alt text]<img src="https://ddgobkiprc33d.cloudfront.net/3bd5c471-4451-455a-95e5-e14c654067e9.PNG" alt="Qt.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">I've been looking on many topics on the forum and tried several style sheets, but none of them worked.<br />
From what I understood, setting the following style sheet :<br />
QTabWidget::pane<br />
{<br />
border-top: 3px solid rgb(0, 0, 0);<br />
border-left: 3px solid rgb(0, 0, 0);<br />
border-right: 3px solid rgb(0, 0, 0);<br />
border-bottom: 3px solid rgb(0, 0, 0);<br />
}<br />
should solve my problem. But nothing changes.</p>
<p dir="auto">Anyone knows how to hide this grey line on the top, or set different king of borders for the panes?</p>
<p dir="auto">Thank you for your help!</p>
]]></description><link>https://forum.qt.io/topic/112044/changing-border-of-qtabwidget</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 20:09:08 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/112044.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Feb 2020 11:00:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to changing border of QTabWidget on Thu, 27 Feb 2020 13:33:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/emmanuelc">@<bdi>EmmanuelC</bdi></a><br />
Excellent!  Hence why it's always an idea to start from an example they show you, check it works, and then compare against whatever you are actually doing :)</p>
<p dir="auto"><a href="https://doc.qt.io/qt-5/qtabwidget.html#documentMode-prop" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qtabwidget.html#documentMode-prop</a></p>
<blockquote>
<p dir="auto">When this property is set <strong>the tab widget frame is not rendered</strong>. This mode is useful for showing document-type pages where the page covers most of the tab widget area.</p>
</blockquote>
<p dir="auto">! :)</p>
]]></description><link>https://forum.qt.io/post/580031</link><guid isPermaLink="true">https://forum.qt.io/post/580031</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 27 Feb 2020 13:33:25 GMT</pubDate></item><item><title><![CDATA[Reply to changing border of QTabWidget on Thu, 27 Feb 2020 12:52:09 GMT]]></title><description><![CDATA[<p dir="auto">I finally found what the problem was : I had set the option documentMode.<br />
When I dechecked it, everything was working fine, as expected!<br />
<img src="https://ddgobkiprc33d.cloudfront.net/74885c59-597f-48fd-89df-077f486b9628.PNG" alt="Qt.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/580020</link><guid isPermaLink="true">https://forum.qt.io/post/580020</guid><dc:creator><![CDATA[EmmanuelC]]></dc:creator><pubDate>Thu, 27 Feb 2020 12:52:09 GMT</pubDate></item><item><title><![CDATA[Reply to changing border of QTabWidget on Thu, 27 Feb 2020 11:38:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/emmanuelc">@<bdi>EmmanuelC</bdi></a><br />
This looks reasonable to me, so don't know why not working for you.  Why don't you try out the actual example given in <a href="https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar</a> and see how that looks for you compared to that photo?</p>
]]></description><link>https://forum.qt.io/post/580006</link><guid isPermaLink="true">https://forum.qt.io/post/580006</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 27 Feb 2020 11:38:19 GMT</pubDate></item></channel></rss>