<?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 change fore-ground color of progress-bar]]></title><description><![CDATA[<p dir="auto">How can we change chunk color (fore-ground color) of QProgressBar using somewhat similar syntax as shown below:<br />
@ui-&gt;progressBar-&gt;setStyle(new QPlastiqueStyle);<br />
ui-&gt;progressBar-&gt;setStyleSheet("background-color: white");@</p>
]]></description><link>https://forum.qt.io/topic/15100/how-to-change-fore-ground-color-of-progress-bar</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 18:07:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/15100.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Mar 2012 12:42:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to change fore-ground color of progress-bar on Mon, 19 Mar 2012 14:31:54 GMT]]></title><description><![CDATA[<p dir="auto">Thanks! perhaps I needed this.</p>
]]></description><link>https://forum.qt.io/post/132961</link><guid isPermaLink="true">https://forum.qt.io/post/132961</guid><dc:creator><![CDATA[adnan]]></dc:creator><pubDate>Mon, 19 Mar 2012 14:31:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to change fore-ground color of progress-bar on Mon, 19 Mar 2012 14:10:49 GMT]]></title><description><![CDATA[<p dir="auto">You should start reading right "here":<a href="http://qt-project.org/doc/qt-4.8/stylesheet.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/stylesheet.html</a>.</p>
]]></description><link>https://forum.qt.io/post/132957</link><guid isPermaLink="true">https://forum.qt.io/post/132957</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 19 Mar 2012 14:10:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to change fore-ground color of progress-bar on Mon, 19 Mar 2012 13:42:27 GMT]]></title><description><![CDATA[<p dir="auto">I don't want to use this sort of syntax:<br />
@QProgressBar::chunk {<br />
background-color: #05B8CC;<br />
width: 20px;<br />
}@</p>
<p dir="auto">Where to use this piece of code by the way? in constructor where?<br />
By the way can't we use a syntax of this type:<br />
@ui-&gt;progressBar-&gt;setStyleSheet("background-color: white");@</p>
]]></description><link>https://forum.qt.io/post/132952</link><guid isPermaLink="true">https://forum.qt.io/post/132952</guid><dc:creator><![CDATA[adnan]]></dc:creator><pubDate>Mon, 19 Mar 2012 13:42:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to change fore-ground color of progress-bar on Mon, 19 Mar 2012 12:58:53 GMT]]></title><description><![CDATA[<p dir="auto">"Customizing QProgressBar":<a href="http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qprogressbar" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qprogressbar</a></p>
]]></description><link>https://forum.qt.io/post/132948</link><guid isPermaLink="true">https://forum.qt.io/post/132948</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 19 Mar 2012 12:58:53 GMT</pubDate></item></channel></rss>