<?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 Stylesheet Sidebar Tutorial</title>
	<atom:link href="http://thesmithfam.org/blog/2009/09/18/qt-sidebar-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://thesmithfam.org/blog/2009/09/18/qt-sidebar-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: big_meh</title>
		<link>http://thesmithfam.org/blog/2009/09/18/qt-sidebar-tutorial/comment-page-1/#comment-125303</link>
		<dc:creator>big_meh</dc:creator>
		<pubDate>Mon, 14 Feb 2011 23:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=393#comment-125303</guid>
		<description>Hi
thx for nice tutorial...
in case anyone want to know how to do this at runtime inside constructor.. it took me quite a while to figure this one out...
so do this inside your Widget/Frame constructor:

this-&gt;setProperty(&quot;class&quot;, QString(&quot;TestWidget&quot;));

and later you can do this:
this-&gt;setStyleSheet(&quot;*.TestWidget { background-color: darkgrey } &quot;);

if someone knows better way just let us know :-)</description>
		<content:encoded><![CDATA[<p>Hi<br />
thx for nice tutorial&#8230;<br />
in case anyone want to know how to do this at runtime inside constructor.. it took me quite a while to figure this one out&#8230;<br />
so do this inside your Widget/Frame constructor:</p>
<p>this-&gt;setProperty(&#8220;class&#8221;, QString(&#8220;TestWidget&#8221;));</p>
<p>and later you can do this:<br />
this-&gt;setStyleSheet(&#8220;*.TestWidget { background-color: darkgrey } &#8220;);</p>
<p>if someone knows better way just let us know :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://thesmithfam.org/blog/2009/09/18/qt-sidebar-tutorial/comment-page-1/#comment-103259</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Sun, 20 Jun 2010 05:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=393#comment-103259</guid>
		<description>Hey,

thanks for your tutorials. They&#039;re very nice.

Jan</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>thanks for your tutorials. They&#8217;re very nice.</p>
<p>Jan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dragan</title>
		<link>http://thesmithfam.org/blog/2009/09/18/qt-sidebar-tutorial/comment-page-1/#comment-102573</link>
		<dc:creator>dragan</dc:creator>
		<pubDate>Thu, 27 May 2010 08:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=393#comment-102573</guid>
		<description>Hi 
  Add a custom property  ... Do this by clicking the green “plus” sign  - in QDesigner

How can I do  this in Visual Studio?

and yes, great tutorial</description>
		<content:encoded><![CDATA[<p>Hi<br />
  Add a custom property  &#8230; Do this by clicking the green “plus” sign  &#8211; in QDesigner</p>
<p>How can I do  this in Visual Studio?</p>
<p>and yes, great tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dgu</title>
		<link>http://thesmithfam.org/blog/2009/09/18/qt-sidebar-tutorial/comment-page-1/#comment-101076</link>
		<dc:creator>dgu</dc:creator>
		<pubDate>Tue, 13 Apr 2010 15:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=393#comment-101076</guid>
		<description>superbe !!!</description>
		<content:encoded><![CDATA[<p>superbe !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://thesmithfam.org/blog/2009/09/18/qt-sidebar-tutorial/comment-page-1/#comment-90613</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 27 Oct 2009 02:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=393#comment-90613</guid>
		<description>André, currently Qt has no way to share settings like layout spacing and margins between UI files. Furthermore, there is no automated way to share those settings between widgets in the same UI file. It&#039;s unfortunate.

Also, there is no way to share stylesheet settings between UI files either, at least not without sacrificing Designer. A co-worker and I patched Designer so you could apply a global stylesheet to multiple UI files, and it worked great. We also patched the stylesheet system to allow one stylesheet file to &quot;include&quot; another (like a C++ #include). We even submitted the latter feature as a patch to the Qt guys, but they have not incorporated it to my knowledge. That is also unfortunate.</description>
		<content:encoded><![CDATA[<p>André, currently Qt has no way to share settings like layout spacing and margins between UI files. Furthermore, there is no automated way to share those settings between widgets in the same UI file. It&#8217;s unfortunate.</p>
<p>Also, there is no way to share stylesheet settings between UI files either, at least not without sacrificing Designer. A co-worker and I patched Designer so you could apply a global stylesheet to multiple UI files, and it worked great. We also patched the stylesheet system to allow one stylesheet file to &#8220;include&#8221; another (like a C++ #include). We even submitted the latter feature as a patch to the Qt guys, but they have not incorporated it to my knowledge. That is also unfortunate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: André Terra</title>
		<link>http://thesmithfam.org/blog/2009/09/18/qt-sidebar-tutorial/comment-page-1/#comment-90596</link>
		<dc:creator>André Terra</dc:creator>
		<pubDate>Mon, 26 Oct 2009 23:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=393#comment-90596</guid>
		<description>Hey! I just found your blog on Google and I&#039;m glad I clicked the link. Your tips are great for a Qt noob like me and let me say there aren&#039;t many introductory guides for Qt out there (or at least none that stand out on Google).

I&#039;ve been playing around with layout and stylesheets in Qt Designer for a few days now and I was wondering if there&#039;s a way I could export some of those settings to use in similar projects. As far as stylesheets go, I could just save them as a text file, but is there anything I can do to reuse settings like layoutSpacing and layout*Margin? I&#039;m told positioning elements manually is a no-no (see http://chaos.troll.no/~ahanssen/devdays2007/DevDays2007-Layouts.pdf), so I guess my desire for such a feature isn&#039;t that unfounded.

Again, thanks a lot for your tips and keep on writing!

Cheers,
André</description>
		<content:encoded><![CDATA[<p>Hey! I just found your blog on Google and I&#8217;m glad I clicked the link. Your tips are great for a Qt noob like me and let me say there aren&#8217;t many introductory guides for Qt out there (or at least none that stand out on Google).</p>
<p>I&#8217;ve been playing around with layout and stylesheets in Qt Designer for a few days now and I was wondering if there&#8217;s a way I could export some of those settings to use in similar projects. As far as stylesheets go, I could just save them as a text file, but is there anything I can do to reuse settings like layoutSpacing and layout*Margin? I&#8217;m told positioning elements manually is a no-no (see <a href="http://chaos.troll.no/~ahanssen/devdays2007/DevDays2007-Layouts.pdf" rel="nofollow">http://chaos.troll.no/~ahanssen/devdays2007/DevDays2007-Layouts.pdf</a>), so I guess my desire for such a feature isn&#8217;t that unfounded.</p>
<p>Again, thanks a lot for your tips and keep on writing!</p>
<p>Cheers,<br />
André</p>
]]></content:encoded>
	</item>
</channel>
</rss>

