<?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 to set borders (top&#x2F;bot etc) with different width&#x2F;color in C++?]]></title><description><![CDATA[<p dir="auto">hi folks. I'm wondering if you can set the different borders with different width/color for a QWidget. I checked the setStyleSheet, it seems there's no such example...</p>
]]></description><link>https://forum.qt.io/topic/64919/how-to-set-borders-top-bot-etc-with-different-width-color-in-c</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 12:12:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/64919.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Mar 2016 11:42:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to set borders (top&#x2F;bot etc) with different width&#x2F;color in C++? on Tue, 08 Mar 2016 12:28:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> said:</p>
<blockquote>
<p dir="auto">border-top: 2px solid red;</p>
</blockquote>
<p dir="auto">thx for the help! that worked.</p>
]]></description><link>https://forum.qt.io/post/317052</link><guid isPermaLink="true">https://forum.qt.io/post/317052</guid><dc:creator><![CDATA[qtpi]]></dc:creator><pubDate>Tue, 08 Mar 2016 12:28:02 GMT</pubDate></item><item><title><![CDATA[Reply to how to set borders (top&#x2F;bot etc) with different width&#x2F;color in C++? on Tue, 08 Mar 2016 12:02:15 GMT]]></title><description><![CDATA[<p dir="auto">hi<br />
This made top line red and rest green.<br />
QWidget  {<br />
border: 2px solid green;<br />
border-top: 2px solid red;<br />
border-radius: 4px;<br />
padding: 2px;<br />
background-image: url(images/welcome.png);<br />
}</p>
]]></description><link>https://forum.qt.io/post/317050</link><guid isPermaLink="true">https://forum.qt.io/post/317050</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Tue, 08 Mar 2016 12:02:15 GMT</pubDate></item></channel></rss>