<?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[How QPushButton checked show only border-bottom ?]]></title><description><![CDATA[<p dir="auto">The style border-bottom do not work.<br />
And can set style to QButtonGroup ?</p>
<pre><code>setStyleSheet("QPushButton { font-size:20px; }"
              "QPushButton:checked { border-bottom:1px solid rgb(0,131,221); color:rgb(0,131,221); font-size:20px;}");
</code></pre>
<p dir="auto"><img src="http://wx2.sinaimg.cn/large/66ad7667gy1fp15d4id6xj20mc065jry.jpg" alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/88373/how-qpushbutton-checked-show-only-border-bottom</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 19:15:46 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/88373.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Mar 2018 14:27:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How QPushButton checked show only border-bottom ? on Mon, 05 Mar 2018 15:14:37 GMT]]></title><description><![CDATA[<p dir="auto">border:none and border-bottom must both have, so strange !<br />
And use QTabWidget instead of QButtonGroup is much more better here.</p>
]]></description><link>https://forum.qt.io/post/445312</link><guid isPermaLink="true">https://forum.qt.io/post/445312</guid><dc:creator><![CDATA[sonichy]]></dc:creator><pubDate>Mon, 05 Mar 2018 15:14:37 GMT</pubDate></item><item><title><![CDATA[Reply to How QPushButton checked show only border-bottom ? on Sun, 04 Mar 2018 23:18:06 GMT]]></title><description><![CDATA[<p dir="auto">you must <strong>set checkable to true</strong> and then <strong>set border to none</strong> then set border-bottom like this:</p>
<pre><code>ui-&gt;pushButton_2-&gt;setCheckable(true);
    ui-&gt;pushButton_2-&gt;setStyleSheet("QPushButton { font-size:20px; }"
                                    "QPushButton:checked { border:none;border-bottom:1px solid rgb(0,131,221); color:rgb(0,131,221); font-size:20px;}");
}
</code></pre>
]]></description><link>https://forum.qt.io/post/445129</link><guid isPermaLink="true">https://forum.qt.io/post/445129</guid><dc:creator><![CDATA[mr ZX]]></dc:creator><pubDate>Sun, 04 Mar 2018 23:18:06 GMT</pubDate></item></channel></rss>