<?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[[SOLVED]QProgressBar stylesheet problem]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I styling my ProgressBar</p>
<p dir="auto">I customize progress percent image.</p>
<p dir="auto">But... i have problem with one... 50% - Qt Creator show good, 50% in App show 100%... i don't know why</p>
<p dir="auto">Stylesheet:<br />
@QProgressBar#progressBar<br />
{<br />
border:0;<br />
background-color:rgb(0,0,0);<br />
}</p>
<p dir="auto">QProgressBar#progressBar::chunk:horizontal<br />
{<br />
background-image:url(:/img/barV2);<br />
width:1px;<br />
}@</p>
<p dir="auto">Image:<br />
!<a href="http://www.sdilej.eu/pics/6f4e71defd6125a232bc6d1a8e8df930.png(Image)" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.sdilej.eu/pics/6f4e71defd6125a232bc6d1a8e8df930.png(Image)</a>!</p>
<p dir="auto">Top: App<br />
Bot: Qt creator</p>
]]></description><link>https://forum.qt.io/topic/16574/solved-qprogressbar-stylesheet-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 11:26:51 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/16574.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 May 2012 17:47:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED]QProgressBar stylesheet problem on Tue, 08 May 2012 19:59:28 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="glararan" date="1336503116"]I add it to code...nothing changed</p>
<p dir="auto">EDIT:SOLVED[/quote]</p>
<p dir="auto">Hi,<br />
You need to EDIT your first post and append SOLVED if you got the answer. If not then you can provide your code so that we can figure out the above behavior of the progress bar. As it has already been explained above that stylesheets mostly deals with the look and feel of the component.</p>
<p dir="auto">Thanks :)</p>
]]></description><link>https://forum.qt.io/post/138377</link><guid isPermaLink="true">https://forum.qt.io/post/138377</guid><dc:creator><![CDATA[Sam]]></dc:creator><pubDate>Tue, 08 May 2012 19:59:28 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED]QProgressBar stylesheet problem on Tue, 08 May 2012 18:51:56 GMT]]></title><description><![CDATA[<p dir="auto">I add it to code...nothing changed</p>
<p dir="auto">EDIT:SOLVED</p>
]]></description><link>https://forum.qt.io/post/138371</link><guid isPermaLink="true">https://forum.qt.io/post/138371</guid><dc:creator><![CDATA[glararan]]></dc:creator><pubDate>Tue, 08 May 2012 18:51:56 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED]QProgressBar stylesheet problem on Tue, 08 May 2012 18:19:44 GMT]]></title><description><![CDATA[<p dir="auto">The size of the progressbar is not connected to the way you want to display it. The stylesheet only changes the way it is displayed.<br />
The % completed size is determined by two properties: Maximum and Value (minimum also, but we will assume you have 0 as minimum).<br />
You might want to try and set the:<br />
@<br />
QProgressBar::setMaximum(Your max percentage here); // Might be in constructor?<br />
.....<br />
QProgressBar::setValue(current persentage here);<br />
@</p>
]]></description><link>https://forum.qt.io/post/138367</link><guid isPermaLink="true">https://forum.qt.io/post/138367</guid><dc:creator><![CDATA[Jeroentjehome]]></dc:creator><pubDate>Tue, 08 May 2012 18:19:44 GMT</pubDate></item></channel></rss>