<?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"
	>
<channel>
	<title>Comments on: HICON to QPixmap</title>
	<atom:link href="http://www.methylblue.com/blog/hicon-to-qpixmap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.methylblue.com/blog/hicon-to-qpixmap/</link>
	<description>The Future Comes Second</description>
	<pubDate>Fri, 21 Nov 2008 16:35:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Retrieving a file's icon - Qt Centre Forum</title>
		<link>http://www.methylblue.com/blog/hicon-to-qpixmap/#comment-35808</link>
		<dc:creator>Retrieving a file's icon - Qt Centre Forum</dc:creator>
		<pubDate>Tue, 30 Oct 2007 08:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.methylblue.com/blog/?p=93#comment-35808</guid>
		<description>&lt;!--%kramer-ref-pre%--&gt;[...] Re: Retrieving a file's icon     yep forgot that. i prefer this solution: http://www.methylblue.com/blog/hicon-to-qpixmap/ [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><!--%kramer-ref-pre%-->[...] Re: Retrieving a file&#8217;s icon     yep forgot that. i prefer this solution: <a href="http://www.methylblue.com/blog/hicon-to-qpixmap/" rel="nofollow">http://www.methylblue.com/blog/hicon-to-qpixmap/</a> [...]<!--%kramer-ref-post%--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/5e43be26c7aae5b.png" alt="Daniel Identicon Icon" height="35" width="35" /> Daniel</title>
		<link>http://www.methylblue.com/blog/hicon-to-qpixmap/#comment-11061</link>
		<dc:creator><img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/5e43be26c7aae5b.png" alt="Daniel Identicon Icon" height="35" width="35" /> Daniel</dc:creator>
		<pubDate>Thu, 15 Feb 2007 23:40:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.methylblue.com/blog/?p=93#comment-11061</guid>
		<description>Yeah, I tried both alpha settings, plus messed around a bit without much success. Luckily, it seems Qt is now doing the hard work for us in Qt 4.3. Check out the new convertHIconToPixmap() function in src\gui\image\qpixmap_win.cpp from the latest Qt snapshot. It includes all the necessary craziness to detect alpha and whatnot. Not sure when Qt 4.3 will be out, but you can just copy+paste that function and use it in an older Qt 4 program.</description>
		<content:encoded><![CDATA[<p>Yeah, I tried both alpha settings, plus messed around a bit without much success. Luckily, it seems Qt is now doing the hard work for us in Qt 4.3. Check out the new convertHIconToPixmap() function in src\gui\image\qpixmap_win.cpp from the latest Qt snapshot. It includes all the necessary craziness to detect alpha and whatnot. Not sure when Qt 4.3 will be out, but you can just copy+paste that function and use it in an older Qt 4 program.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/9fe266ac3e325bc.png" alt="Max Howell Identicon Icon" height="35" width="35" /> Max Howell</title>
		<link>http://www.methylblue.com/blog/hicon-to-qpixmap/#comment-11024</link>
		<dc:creator><img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/9fe266ac3e325bc.png" alt="Max Howell Identicon Icon" height="35" width="35" /> Max Howell</dc:creator>
		<pubDate>Wed, 14 Feb 2007 11:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.methylblue.com/blog/?p=93#comment-11024</guid>
		<description>Diid you try both pixmap( foo, true ) and pixmap( foo, false ), as one handles transparency and the other doesn't. I can't remember exactly all the details as I wrote this a while ago. I recall I had to add the bool as there was no way to detect this I could determine.</description>
		<content:encoded><![CDATA[<p>Diid you try both pixmap( foo, true ) and pixmap( foo, false ), as one handles transparency and the other doesn&#8217;t. I can&#8217;t remember exactly all the details as I wrote this a while ago. I recall I had to add the bool as there was no way to detect this I could determine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/5e43be26c7aae5b.png" alt="Daniel Identicon Icon" height="35" width="35" /> Daniel</title>
		<link>http://www.methylblue.com/blog/hicon-to-qpixmap/#comment-11008</link>
		<dc:creator><img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/5e43be26c7aae5b.png" alt="Daniel Identicon Icon" height="35" width="35" /> Daniel</dc:creator>
		<pubDate>Tue, 13 Feb 2007 23:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.methylblue.com/blog/?p=93#comment-11008</guid>
		<description>Hi,

Thanks for the post! This method works great except for one thing: for old-style icons with 1-bpp transparency, the black color goes completely transparent, giving the icons a weird "cropped" look.

For example, in Windows XP, the icon for .BAT files has a black border on the bottom and right. This border goes completely transparent at some point during the conversion to QPixmap. This is more noticeable for me, because I am using SHGFI_SMALLICON, so a sizeable chunk of some icons just goes "missing"!

Any idea how to fix it? Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the post! This method works great except for one thing: for old-style icons with 1-bpp transparency, the black color goes completely transparent, giving the icons a weird &#8220;cropped&#8221; look.</p>
<p>For example, in Windows XP, the icon for .BAT files has a black border on the bottom and right. This border goes completely transparent at some point during the conversion to QPixmap. This is more noticeable for me, because I am using SHGFI_SMALLICON, so a sizeable chunk of some icons just goes &#8220;missing&#8221;!</p>
<p>Any idea how to fix it? Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
