<?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[[SELF-SOLVED] QTabBar and QSS]]></title><description><![CDATA[<p dir="auto">Hi, community.</p>
<p dir="auto">Today I got a new task. I need to make custom tabs in QTabBar - specially it must be cool)). I have background-images for all states of them (normal, selected, inactive), but I need to custom "X" button on them. Also I need to control it (control on selected or not selected tab).</p>
<p dir="auto">Now I can do it in this way:<br />
@<br />
QTabBar::tab {<br />
background-image:url(":/way/way/way/img.png");<br />
}</p>
<p dir="auto">QTabBar::tab:selected {<br />
background-image:url(":/way/way/way/img2.png");<br />
}<br />
@</p>
<p dir="auto">And in a what way I can change apperiance of "X" button?</p>
<p dir="auto"><em>UPD</em>: maybe there are something like this:<br />
@<br />
QTabBar::tab:selected QTabBar::close-button {<br />
/* to customize close button on selected tab <em>/<br />
/</em> will it work? */<br />
}<br />
@</p>
<p dir="auto">Thanks.</p>
<p dir="auto"><strong>P.S. It's really sadly that Alexandra leaves Nokia...</strong></p>
]]></description><link>https://forum.qt.io/topic/17586/self-solved-qtabbar-and-qss</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 14:23:49 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/17586.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Jun 2012 20:03:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SELF-SOLVED] QTabBar and QSS on Sat, 16 Jun 2012 11:56:53 GMT]]></title><description><![CDATA[<p dir="auto">I found solution. In UPD.</p>
]]></description><link>https://forum.qt.io/post/141876</link><guid isPermaLink="true">https://forum.qt.io/post/141876</guid><dc:creator><![CDATA[tucnak]]></dc:creator><pubDate>Sat, 16 Jun 2012 11:56:53 GMT</pubDate></item><item><title><![CDATA[Reply to [SELF-SOLVED] QTabBar and QSS on Sat, 16 Jun 2012 05:49:33 GMT]]></title><description><![CDATA[<p dir="auto">As far as I understood - this post won't have any answers).</p>
]]></description><link>https://forum.qt.io/post/141858</link><guid isPermaLink="true">https://forum.qt.io/post/141858</guid><dc:creator><![CDATA[tucnak]]></dc:creator><pubDate>Sat, 16 Jun 2012 05:49:33 GMT</pubDate></item></channel></rss>