<?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[Backround-color for a styledpannel | sunken QLabel]]></title><description><![CDATA[<p dir="auto">I would like to set a particular color to the sunken part of the design, that is to say a color following the inside part of the box.</p>
<p dir="auto">If I<br />
@    whateverqlabel-&gt;setStyleSheet("QLabel { background-color : red; color : blue; }");<br />
whateverqlabel-&gt;setFrameStyle(QFrame::StyledPanel|QFrame::Sunken);@<br />
Then I obtain the whole box drawn onto an evil bigger background-colored rectangle.</p>
]]></description><link>https://forum.qt.io/topic/25149/backround-color-for-a-styledpannel-sunken-qlabel</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 03:23:15 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/25149.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Mar 2013 16:38:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Backround-color for a styledpannel | sunken QLabel on Wed, 13 Mar 2013 19:02:20 GMT]]></title><description><![CDATA[<p dir="auto">I'm not sure I understood correctly. You want to style the frame itself?<br />
If so, you can do a sunken frame entirely with stylesheet like that:<br />
@<br />
border-top: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,<br />
stop:0 rgba(192, 192, 192, 255), stop:1 rgba(64, 64, 64, 255));<br />
border-left: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0,<br />
stop:0 rgba(192, 192, 192, 255), stop:1 rgba(64, 64, 64, 255));<br />
border-right: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0,<br />
stop:0 rgba(192, 192, 192, 255), stop:1 rgba(255, 255, 255, 255));<br />
border-bottom: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,<br />
stop:0 rgba(192, 192, 192, 255), stop:1 rgba(255, 255, 255, 255));<br />
@<br />
Adjust the colors to your needs of course.</p>
]]></description><link>https://forum.qt.io/post/170125</link><guid isPermaLink="true">https://forum.qt.io/post/170125</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Wed, 13 Mar 2013 19:02:20 GMT</pubDate></item></channel></rss>