<?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[QTabWidget: different close image for selected Tab]]></title><description><![CDATA[<p dir="auto">Is it possible to have a different close image for active or inactive tabs?</p>
<p dir="auto">I want to have an image for active and hovered tabs and no image for inactive tabs.</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.qt.io/topic/10838/qtabwidget-different-close-image-for-selected-tab</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 04:15:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/10838.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Oct 2011 09:19:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QTabWidget: different close image for selected Tab on Fri, 28 Oct 2011 09:50:20 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Andre" date="1319795356"]Shouldn't the last be<br />
@<br />
QTabBar::tab:hover<br />
@<br />
?<br />
[/quote]</p>
<p dir="auto">Right.</p>
]]></description><link>https://forum.qt.io/post/114782</link><guid isPermaLink="true">https://forum.qt.io/post/114782</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 28 Oct 2011 09:50:20 GMT</pubDate></item><item><title><![CDATA[Reply to QTabWidget: different close image for selected Tab on Fri, 28 Oct 2011 09:49:16 GMT]]></title><description><![CDATA[<p dir="auto">Shouldn't the last be<br />
@<br />
QTabBar::tab:hover<br />
@<br />
?</p>
]]></description><link>https://forum.qt.io/post/114783</link><guid isPermaLink="true">https://forum.qt.io/post/114783</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Fri, 28 Oct 2011 09:49:16 GMT</pubDate></item><item><title><![CDATA[Reply to QTabWidget: different close image for selected Tab on Fri, 28 Oct 2011 09:34:12 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Andre" date="1319794148"]I think that that is up to the style to render. However, I think you might be able to do what you want using a style sheet too. Check the Qt style sheet reference, and take a look at the last part of the example for customizing a tab bar.[/quote]</p>
<p dir="auto">I already tried it with styles but i cannot find the right name for not selected or hovered</p>
<p dir="auto">The Close Button tag is:</p>
<p dir="auto">@QTabBar::close-button@</p>
<p dir="auto">while the Tabs use</p>
<p dir="auto">@QTabBar::tab:selected@<br />
and<br />
@QTabBar::tab:hover@</p>
]]></description><link>https://forum.qt.io/post/114778</link><guid isPermaLink="true">https://forum.qt.io/post/114778</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 28 Oct 2011 09:34:12 GMT</pubDate></item><item><title><![CDATA[Reply to QTabWidget: different close image for selected Tab on Fri, 28 Oct 2011 09:29:08 GMT]]></title><description><![CDATA[<p dir="auto">I think that that is up to the style to render. However, I think you might be able to do what you want using a style sheet too. Check the Qt style sheet reference, and take a look at the last part of the example for customizing a tab bar.</p>
]]></description><link>https://forum.qt.io/post/114777</link><guid isPermaLink="true">https://forum.qt.io/post/114777</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Fri, 28 Oct 2011 09:29:08 GMT</pubDate></item></channel></rss>