<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Qt Stylesheets Tutorial</title>
	<atom:link href="http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/</link>
	<description>Your blog is probably better than mine.</description>
	<lastBuildDate>Wed, 16 May 2012 23:39:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Mardi</title>
		<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/comment-page-2/#comment-183567</link>
		<dc:creator>Mardi</dc:creator>
		<pubDate>Fri, 04 May 2012 09:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=327#comment-183567</guid>
		<description>Hi Dave,

That was a nice Tutorial... ::thumb up::

I try to add simple background image on Qwidget main object. it can display when I try to preview it (alt + shit + R), but..
I could not see the backgound image when I try to run build and &#039;test&#039; running my application.

can you help me with this confusing?

Regards</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>That was a nice Tutorial&#8230; ::thumb up::</p>
<p>I try to add simple background image on Qwidget main object. it can display when I try to preview it (alt + shit + R), but..<br />
I could not see the backgound image when I try to run build and &#8216;test&#8217; running my application.</p>
<p>can you help me with this confusing?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lukiasz</title>
		<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/comment-page-2/#comment-171755</link>
		<dc:creator>lukiasz</dc:creator>
		<pubDate>Thu, 23 Feb 2012 00:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=327#comment-171755</guid>
		<description>Thanks for this great tutorial! I&#039;d never thought how cute Qt can be :) Here are mine results: http://s17.postimage.org/t9q8x6um7/Przechwytywanie.png

And corresponding css:

#MainWindow {
 background:  #38395a;
 }

#frame {
 border: 1px solid gray;
 border-radius: 7px;
background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #38395a, stop: 1 #141529);
 }
QLabel {
font-size: 14px;
font-variant:small-caps;
font-family: courier;
 color: white;
}

#label {
font-weight: bold;
 font-size: 20px;
 color: white;
}



QLineEdit {
 padding: 1px;
 border-style: solid;
 border: 1px solid ;
 color: white;
 border-radius: 2px;
 border-color: #141529;
 background-color: #6d6d80;
 }

QPushButton {
 color: white;
 background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #88d, stop: 0.1 #444450, stop: 0.49 #444450, stop: 0.5 #3c3c46, stop: 1 #1f1f24);
 border-width: 1px;
 border-color: #141529;
 border-style: solid;
 border-radius:4;
 padding: 3px;
 font-size: 14px;
font-variant:small-caps;
font-family: courier;
 padding-left:5px;
 padding-right: 5px;
 min-width: 50px;
 max-width: 50px;
 min-height: 13px;
 max-height: 13px;
 }</description>
		<content:encoded><![CDATA[<p>Thanks for this great tutorial! I&#8217;d never thought how cute Qt can be :) Here are mine results: <a href="http://s17.postimage.org/t9q8x6um7/Przechwytywanie.png" rel="nofollow">http://s17.postimage.org/t9q8x6um7/Przechwytywanie.png</a></p>
<p>And corresponding css:</p>
<p>#MainWindow {<br />
 background:  #38395a;<br />
 }</p>
<p>#frame {<br />
 border: 1px solid gray;<br />
 border-radius: 7px;<br />
background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #38395a, stop: 1 #141529);<br />
 }<br />
QLabel {<br />
font-size: 14px;<br />
font-variant:small-caps;<br />
font-family: courier;<br />
 color: white;<br />
}</p>
<p>#label {<br />
font-weight: bold;<br />
 font-size: 20px;<br />
 color: white;<br />
}</p>
<p>QLineEdit {<br />
 padding: 1px;<br />
 border-style: solid;<br />
 border: 1px solid ;<br />
 color: white;<br />
 border-radius: 2px;<br />
 border-color: #141529;<br />
 background-color: #6d6d80;<br />
 }</p>
<p>QPushButton {<br />
 color: white;<br />
 background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #88d, stop: 0.1 #444450, stop: 0.49 #444450, stop: 0.5 #3c3c46, stop: 1 #1f1f24);<br />
 border-width: 1px;<br />
 border-color: #141529;<br />
 border-style: solid;<br />
 border-radius:4;<br />
 padding: 3px;<br />
 font-size: 14px;<br />
font-variant:small-caps;<br />
font-family: courier;<br />
 padding-left:5px;<br />
 padding-right: 5px;<br />
 min-width: 50px;<br />
 max-width: 50px;<br />
 min-height: 13px;<br />
 max-height: 13px;<br />
 }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pratik</title>
		<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/comment-page-2/#comment-171697</link>
		<dc:creator>Pratik</dc:creator>
		<pubDate>Wed, 22 Feb 2012 15:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=327#comment-171697</guid>
		<description>Just came across the page when I was looking for QT style-sheets. Extremely well organized and nice explanation. Good work. Keep it up.</description>
		<content:encoded><![CDATA[<p>Just came across the page when I was looking for QT style-sheets. Extremely well organized and nice explanation. Good work. Keep it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/comment-page-2/#comment-170866</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 16 Feb 2012 06:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=327#comment-170866</guid>
		<description>pramod, yes, pass an empty string to setStyleSheet().</description>
		<content:encoded><![CDATA[<p>pramod, yes, pass an empty string to setStyleSheet().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pramod</title>
		<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/comment-page-2/#comment-170865</link>
		<dc:creator>pramod</dc:creator>
		<pubDate>Thu, 16 Feb 2012 06:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=327#comment-170865</guid>
		<description>Is there any way to remove the style sheet after it has been set? I&#039;m looking for the inverse of the setStyleSheet() method. Thanks!</description>
		<content:encoded><![CDATA[<p>Is there any way to remove the style sheet after it has been set? I&#8217;m looking for the inverse of the setStyleSheet() method. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/comment-page-2/#comment-160337</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 14 Dec 2011 13:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=327#comment-160337</guid>
		<description>Rooney,

You need to call this in C++:

myCheckBox-&gt;setObjectName(&quot;myCheckBox&quot;);

That&#039;s how the style sheet system will identify the widget.</description>
		<content:encoded><![CDATA[<p>Rooney,</p>
<p>You need to call this in C++:</p>
<p>myCheckBox->setObjectName(&#8220;myCheckBox&#8221;);</p>
<p>That&#8217;s how the style sheet system will identify the widget.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rooney</title>
		<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/comment-page-2/#comment-160288</link>
		<dc:creator>Rooney</dc:creator>
		<pubDate>Wed, 14 Dec 2011 07:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=327#comment-160288</guid>
		<description>Upps, found the error... It may help others as well.

It works if the object name is set in code. Obviously this is not done automatically if building the user interface directly in C++. 

myCheckBox -&gt;setObjectName(&quot;myCheckBox &quot;);</description>
		<content:encoded><![CDATA[<p>Upps, found the error&#8230; It may help others as well.</p>
<p>It works if the object name is set in code. Obviously this is not done automatically if building the user interface directly in C++. </p>
<p>myCheckBox -&gt;setObjectName(&#8220;myCheckBox &#8220;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rooney</title>
		<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/comment-page-2/#comment-160285</link>
		<dc:creator>Rooney</dc:creator>
		<pubDate>Wed, 14 Dec 2011 07:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=327#comment-160285</guid>
		<description>Hello Dave!

I&#039;m having similar problems as Linda (see 2010-02-01).

I use a global style sheet for my application and it works as it should if I use the Qt types like
QCheckBox {
     spacing: 5px; 
}

I don&#039;t use the Qt Designer at all, building my user interface directly in C++. If I want to apply a style to a specified checkbox using its name, does not work. Do you have any idea? I&#039;m using Qt 4.7.4.

#myCheckBox {
     spacing: 5px; 
}

myCheckBox = new QCheckBox(tr(&quot;Hello World&quot;));

I even tried to reload the style sheet immediately after the checkbox has been created, but this doesn&#039;t succeed either.

Regards,
Rooney</description>
		<content:encoded><![CDATA[<p>Hello Dave!</p>
<p>I&#8217;m having similar problems as Linda (see 2010-02-01).</p>
<p>I use a global style sheet for my application and it works as it should if I use the Qt types like<br />
QCheckBox {<br />
     spacing: 5px;<br />
}</p>
<p>I don&#8217;t use the Qt Designer at all, building my user interface directly in C++. If I want to apply a style to a specified checkbox using its name, does not work. Do you have any idea? I&#8217;m using Qt 4.7.4.</p>
<p>#myCheckBox {<br />
     spacing: 5px;<br />
}</p>
<p>myCheckBox = new QCheckBox(tr(&#8220;Hello World&#8221;));</p>
<p>I even tried to reload the style sheet immediately after the checkbox has been created, but this doesn&#8217;t succeed either.</p>
<p>Regards,<br />
Rooney</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/comment-page-2/#comment-155722</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sat, 19 Nov 2011 00:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=327#comment-155722</guid>
		<description>Mouha: Does your mainFrame have rounded corners, or is it just a solid white rectangle with no border, shape or color?

Also, are you compiling your stylesheet using a .qrc file? That would explain why you have to recompile your application to get it to take effect.</description>
		<content:encoded><![CDATA[<p>Mouha: Does your mainFrame have rounded corners, or is it just a solid white rectangle with no border, shape or color?</p>
<p>Also, are you compiling your stylesheet using a .qrc file? That would explain why you have to recompile your application to get it to take effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mouha</title>
		<link>http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/comment-page-2/#comment-155473</link>
		<dc:creator>mouha</dc:creator>
		<pubDate>Thu, 17 Nov 2011 16:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=327#comment-155473</guid>
		<description>Hi Dave,

this is for sure a reference tutorial, still now.

Nevertheless, I have spent hours to figure out why the mainfraime allways stay in white with no border. This is strange as when I copy paste your code in the &quot;stylesheet&quot; designe editor, this is fine. But at runtime the frame is rounded and white, no border.

If you have any idea, for my brain&#039;s sake

PS : I also found that  I need to do a &quot;recompile&quot; instead of compile to have changes applied from my outside stylesheet.</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>this is for sure a reference tutorial, still now.</p>
<p>Nevertheless, I have spent hours to figure out why the mainfraime allways stay in white with no border. This is strange as when I copy paste your code in the &#8220;stylesheet&#8221; designe editor, this is fine. But at runtime the frame is rounded and white, no border.</p>
<p>If you have any idea, for my brain&#8217;s sake</p>
<p>PS : I also found that  I need to do a &#8220;recompile&#8221; instead of compile to have changes applied from my outside stylesheet.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

