<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/3.3.1" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>KBlog</title>
		<link>http://www.ukdragon.com/blog/index.php</link>
		<atom:link rel="self" type="application/rss+xml" href="http://www.ukdragon.com/blog/index.php?tempskin=_rss2" />
		<description></description>
		<language>en-US</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=3.3.1"/>
		<ttl>60</ttl>
				<item>
			<title>HTC Sense adding all Facebook contacts to phone book On HTC Desire</title>
			<link>http://www.ukdragon.com/blog/index.php/2010/06/23/htc-sense-adding-all-facebook-contacts-to-phone-book-on-htc-desire-1</link>
			<pubDate>Wed, 23 Jun 2010 17:26:20 +0000</pubDate>			<dc:creator>Kieren Searle</dc:creator>
			<category domain="alt">Mutimedia</category>
<category domain="main">Phones</category>			<guid isPermaLink="false">74@http://www.ukdragon.com/blog/</guid>
						<description>&lt;p&gt;This week I got updated my phone to the HTC Desire. It&amp;#8217;s a great phone and I was happy when I discovered that I could link my contacts to their Facebook profile so that their photos and information will appear in my phone book. &lt;/p&gt;

&lt;p&gt;My happiness was short lived however as HTC Sense (the application responsible for linking my contacts to their Facebook accounts) had also added all of my &amp;#8220;friends&amp;#8221; who had listed their phone number on Facebook to my phone book. After some searching I discovered that lots of other people were also having the same problem and there was no fix. It was either no links at all or linking everyone on Facebook. &lt;/p&gt;

&lt;p&gt;However I have come across another application called SyncMyPix that can handle linking Facebook accounts to my phone book contacts without adding people to my phone book. It&amp;#8217;s available in the Market so it&amp;#8217;s easy to install and it&amp;#8217;s also free although there is an option to donate if you find the application useful.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.ukdragon.com/blog/index.php/2010/06/23/htc-sense-adding-all-facebook-contacts-to-phone-book-on-htc-desire-1&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>This week I got updated my phone to the HTC Desire. It&#8217;s a great phone and I was happy when I discovered that I could link my contacts to their Facebook profile so that their photos and information will appear in my phone book. </p>

<p>My happiness was short lived however as HTC Sense (the application responsible for linking my contacts to their Facebook accounts) had also added all of my &#8220;friends&#8221; who had listed their phone number on Facebook to my phone book. After some searching I discovered that lots of other people were also having the same problem and there was no fix. It was either no links at all or linking everyone on Facebook. </p>

<p>However I have come across another application called SyncMyPix that can handle linking Facebook accounts to my phone book contacts without adding people to my phone book. It&#8217;s available in the Market so it&#8217;s easy to install and it&#8217;s also free although there is an option to donate if you find the application useful.</p><div class="item_footer"><p><small><a href="http://www.ukdragon.com/blog/index.php/2010/06/23/htc-sense-adding-all-facebook-contacts-to-phone-book-on-htc-desire-1">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.ukdragon.com/blog/index.php/2010/06/23/htc-sense-adding-all-facebook-contacts-to-phone-book-on-htc-desire-1#comments</comments>
			<wfw:commentRss>http://www.ukdragon.com/blog/index.php?tempskin=_rss2&#38;disp=comments&#38;p=74</wfw:commentRss>
		</item>
				<item>
			<title>Unlocking your Facebook account when it "forgets" your e-mail address</title>
			<link>http://www.ukdragon.com/blog/index.php/2010/06/10/unlocking-your-facebook-account-when-it-forgets-your-e-mail-address</link>
			<pubDate>Thu, 10 Jun 2010 20:47:24 +0000</pubDate>			<dc:creator>Kieren Searle</dc:creator>
			<category domain="main">Computing</category>			<guid isPermaLink="false">72@http://www.ukdragon.com/blog/</guid>
						<description>&lt;p&gt;My girlfriend lost access to her Facebook account this week and Facebook kept reporting that her e-mail address wasn&amp;#8217;t registered. Her profile was still active and looking on the Internet showed unfortunately this has happened to a number of people and any requests of help were ignored by Facebook.&lt;/p&gt;

&lt;p&gt;The exact message that Facebook was giving was:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Incorrect email address&lt;/p&gt;

&lt;p&gt;The email address you entered does not belong to any account. You may try clearing your browser&amp;#8217;s cache and cookies by following these instructions.&lt;/p&gt;

&lt;p&gt;You can log in using any email address, username or mobile phone number associated with your account. Make sure that it is typed correctly.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;A few people had reported finding a solution in using their username instead of their e-mail address when logging in. You have to set your username up manually and not everyone has done this, including my girlfriend, so this wasn&amp;#8217;t any help to us. The same goes for phone numbers.&lt;/p&gt;

&lt;p&gt;To solve this problem I decided to try to test all of her other e-mail addresses to see if one of those had been made her login e-mail address somehow. Lucky it had and we were back into her account. &lt;/p&gt;

&lt;p&gt;I don&amp;#8217;t know if this is a bug in Facebook or somehow she changed it without knowing but we now have the account back. One thing that may be the cause was that she no longer had access to the e-mail address in question so it&amp;#8217;s possible Facebook discovered this and in their wisdom deleted it from her account without saying&lt;/p&gt;

&lt;p&gt;If you do get back into your account then I suggest changing your password just on the off chance that a hacker got into the account to cause the original e-mail address to be lost.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.ukdragon.com/blog/index.php/2010/06/10/unlocking-your-facebook-account-when-it-forgets-your-e-mail-address&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>My girlfriend lost access to her Facebook account this week and Facebook kept reporting that her e-mail address wasn&#8217;t registered. Her profile was still active and looking on the Internet showed unfortunately this has happened to a number of people and any requests of help were ignored by Facebook.</p>

<p>The exact message that Facebook was giving was:</p>

<blockquote><p>Incorrect email address</p>

<p>The email address you entered does not belong to any account. You may try clearing your browser&#8217;s cache and cookies by following these instructions.</p>

<p>You can log in using any email address, username or mobile phone number associated with your account. Make sure that it is typed correctly.</p></blockquote>

<p>A few people had reported finding a solution in using their username instead of their e-mail address when logging in. You have to set your username up manually and not everyone has done this, including my girlfriend, so this wasn&#8217;t any help to us. The same goes for phone numbers.</p>

<p>To solve this problem I decided to try to test all of her other e-mail addresses to see if one of those had been made her login e-mail address somehow. Lucky it had and we were back into her account. </p>

<p>I don&#8217;t know if this is a bug in Facebook or somehow she changed it without knowing but we now have the account back. One thing that may be the cause was that she no longer had access to the e-mail address in question so it&#8217;s possible Facebook discovered this and in their wisdom deleted it from her account without saying</p>

<p>If you do get back into your account then I suggest changing your password just on the off chance that a hacker got into the account to cause the original e-mail address to be lost.</p><div class="item_footer"><p><small><a href="http://www.ukdragon.com/blog/index.php/2010/06/10/unlocking-your-facebook-account-when-it-forgets-your-e-mail-address">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.ukdragon.com/blog/index.php/2010/06/10/unlocking-your-facebook-account-when-it-forgets-your-e-mail-address#comments</comments>
			<wfw:commentRss>http://www.ukdragon.com/blog/index.php?tempskin=_rss2&#38;disp=comments&#38;p=72</wfw:commentRss>
		</item>
				<item>
			<title>Installing KDevelop in Kubuntu/Ubuntu 10.04</title>
			<link>http://www.ukdragon.com/blog/index.php/2010/05/11/installing-kdevelop-in-kubuntu-ubuntu-10-04</link>
			<pubDate>Tue, 11 May 2010 18:03:17 +0000</pubDate>			<dc:creator>Kieren Searle</dc:creator>
			<category domain="alt">Computing</category>
<category domain="alt">Linux</category>
<category domain="alt">Ubuntu</category>
<category domain="main">Programming</category>
<category domain="alt">Kubuntu</category>			<guid isPermaLink="false">71@http://www.ukdragon.com/blog/</guid>
						<description>&lt;p&gt;After upgrading to Kubuntu 10.04 I was disappointed to find that KDevelop wasn&amp;#8217;t listed in the default repositories as apparently it wasn&amp;#8217;t ready in time for the release of 10.04. From what I&amp;#8217;ve read there&amp;#8217;s not much chance of it being added to the repository anytime soon either so I decided to find another way to install it.&lt;/p&gt;

&lt;p&gt;Luckily installing it isn&amp;#8217;t too difficult (no need to install from source) as it is available from the &lt;a href=&quot;https://launchpad.net/~kubuntu-ppa/+archive/backports&quot;&gt;Kubuntu Backports PPA&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;To add the PPA to your repository simply use the command:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;sudo add-apt-repository ppa:kubuntu-ppa/backports&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;You can now update your repository and install KDevelop as normal:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;sudo apt-get update&lt;br /&gt;
sudo apt-get install kdevelop&lt;/p&gt;&lt;/blockquote&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.ukdragon.com/blog/index.php/2010/05/11/installing-kdevelop-in-kubuntu-ubuntu-10-04&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>After upgrading to Kubuntu 10.04 I was disappointed to find that KDevelop wasn&#8217;t listed in the default repositories as apparently it wasn&#8217;t ready in time for the release of 10.04. From what I&#8217;ve read there&#8217;s not much chance of it being added to the repository anytime soon either so I decided to find another way to install it.</p>

<p>Luckily installing it isn&#8217;t too difficult (no need to install from source) as it is available from the <a href="https://launchpad.net/~kubuntu-ppa/+archive/backports">Kubuntu Backports PPA</a>.</p>

<p>To add the PPA to your repository simply use the command:</p>

<blockquote><p>sudo add-apt-repository ppa:kubuntu-ppa/backports</p></blockquote>

<p>You can now update your repository and install KDevelop as normal:</p>

<blockquote><p>sudo apt-get update<br />
sudo apt-get install kdevelop</p></blockquote><div class="item_footer"><p><small><a href="http://www.ukdragon.com/blog/index.php/2010/05/11/installing-kdevelop-in-kubuntu-ubuntu-10-04">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.ukdragon.com/blog/index.php/2010/05/11/installing-kdevelop-in-kubuntu-ubuntu-10-04#comments</comments>
			<wfw:commentRss>http://www.ukdragon.com/blog/index.php?tempskin=_rss2&#38;disp=comments&#38;p=71</wfw:commentRss>
		</item>
				<item>
			<title>Resizing a QGraphicsPixmapItem</title>
			<link>http://www.ukdragon.com/blog/index.php/2010/01/19/resizing-a-qgraphicspixmapitem</link>
			<pubDate>Tue, 19 Jan 2010 16:35:46 +0000</pubDate>			<dc:creator>Kieren Searle</dc:creator>
			<category domain="alt">Computing</category>
<category domain="alt">Programming</category>
<category domain="alt">c++</category>
<category domain="main">Qt</category>			<guid isPermaLink="false">70@http://www.ukdragon.com/blog/</guid>
						<description>&lt;p&gt;I&amp;#8217;ve just finished fighting with some code where I wanted to resize some QGraphicsPixmapItems. I was able to scale them but this didn&amp;#8217;t allow me to resize to specific pixels. I decided to take a step back and noticed that if I create a pixmap object first I can resize that, then create a QGraphicsPixmapItem using the pixmap object:&lt;/p&gt;

&lt;p class=&quot;amcode&quot;&gt;Code:&lt;/p&gt;&lt;div class=&quot;codeblock amc_code amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;//first create a pixmap object&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;QPixmap pixmapObject(&quot;:Images/myimage.png&quot;);&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc3&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc4&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;//now create a QGraphicsPixmapItem&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc5&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;QGraphicsPixmapItem * myImagePixmapItem = new QGraphicsPixmapItem;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc6&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc7&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;//finally add the resize the pixmap and add it to the QGraphicsPixmapItem&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc8&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;myImagePixmapItem-&amp;gt;setPixmap(pixmapObject.scaledToHeight(50, Qt::SmoothTransformation));&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The scaledToHeight function in the last line could be either scaled, scaledToWidth or scaledToHeight. scaled allows you to set both the width and height of the object where as the other 2 will scale the other side automatically so that the aspect ratio of the pixmap is preserved.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.ukdragon.com/blog/index.php/2010/01/19/resizing-a-qgraphicspixmapitem&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished fighting with some code where I wanted to resize some QGraphicsPixmapItems. I was able to scale them but this didn&#8217;t allow me to resize to specific pixels. I decided to take a step back and noticed that if I create a pixmap object first I can resize that, then create a QGraphicsPixmapItem using the pixmap object:</p>

<p class="amcode">Code:</p><div class="codeblock amc_code amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_default">//first create a pixmap object</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc2"></div></td><td><code><span class="amc_default">QPixmap pixmapObject(":Images/myimage.png");</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc3"></div></td><td><code>&nbsp;</code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc4"></div></td><td><code><span class="amc_default">//now create a QGraphicsPixmapItem</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc5"></div></td><td><code><span class="amc_default">QGraphicsPixmapItem * myImagePixmapItem = new QGraphicsPixmapItem;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc6"></div></td><td><code>&nbsp;</code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc7"></div></td><td><code><span class="amc_default">//finally add the resize the pixmap and add it to the QGraphicsPixmapItem</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc8"></div></td><td><code><span class="amc_default">myImagePixmapItem-&gt;setPixmap(pixmapObject.scaledToHeight(50, Qt::SmoothTransformation));</span></code></td></tr>
</table></div>

<p>The scaledToHeight function in the last line could be either scaled, scaledToWidth or scaledToHeight. scaled allows you to set both the width and height of the object where as the other 2 will scale the other side automatically so that the aspect ratio of the pixmap is preserved.</p><div class="item_footer"><p><small><a href="http://www.ukdragon.com/blog/index.php/2010/01/19/resizing-a-qgraphicspixmapitem">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.ukdragon.com/blog/index.php/2010/01/19/resizing-a-qgraphicspixmapitem#comments</comments>
			<wfw:commentRss>http://www.ukdragon.com/blog/index.php?tempskin=_rss2&#38;disp=comments&#38;p=70</wfw:commentRss>
		</item>
				<item>
			<title>Remove trailing newline character from asctime output</title>
			<link>http://www.ukdragon.com/blog/index.php/2010/01/18/remove-trailing-newline-character-from-asctime-output</link>
			<pubDate>Mon, 18 Jan 2010 15:14:16 +0000</pubDate>			<dc:creator>Kieren Searle</dc:creator>
			<category domain="alt">Computing</category>
<category domain="alt">Programming</category>
<category domain="main">c++</category>			<guid isPermaLink="false">69@http://www.ukdragon.com/blog/</guid>
						<description>&lt;p&gt;When converting a tm structure to a string using the asctime function in c++ you are left with a cstring ending with a newline character (\n). This is often a pain if you want to insert the date into another string to use later. &lt;/p&gt;

&lt;p&gt;Since we are using a cstring we know the last two characters are \n and \0. Therefore we just need to change the second to last character in the string from \n to \0:&lt;/p&gt;

&lt;p class=&quot;amcode&quot;&gt;Code:&lt;/p&gt;&lt;div class=&quot;codeblock amc_code amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;struct tm * timeinfo;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;char * time = asctime(timeinfo);&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc3&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;time(strlen(time)-1) = '\0';&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc4&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;cout &amp;lt;&amp;lt; &quot;The time is: &quot; &amp;lt;&amp;lt; time;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you&amp;#8217;re not sure what&amp;#8217;s going on here the end of a cstring is terminated when the character \0 (A null terminator) is reached. If we look at what the cstring looks like before we use the above code it would look like this:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Sat May 20 15:21:51 2000\n\0&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;After the code is run it will look like this:&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;Sat May 20 15:21:51 2000\0\0&lt;/p&gt;&lt;/blockquote&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.ukdragon.com/blog/index.php/2010/01/18/remove-trailing-newline-character-from-asctime-output&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>When converting a tm structure to a string using the asctime function in c++ you are left with a cstring ending with a newline character (\n). This is often a pain if you want to insert the date into another string to use later. </p>

<p>Since we are using a cstring we know the last two characters are \n and \0. Therefore we just need to change the second to last character in the string from \n to \0:</p>

<p class="amcode">Code:</p><div class="codeblock amc_code amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_default">struct tm * timeinfo;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc2"></div></td><td><code><span class="amc_default">char * time = asctime(timeinfo);</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc3"></div></td><td><code><span class="amc_default">time(strlen(time)-1) = '\0';</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc4"></div></td><td><code><span class="amc_default">cout &lt;&lt; "The time is: " &lt;&lt; time;</span></code></td></tr>
</table></div>

<p>If you&#8217;re not sure what&#8217;s going on here the end of a cstring is terminated when the character \0 (A null terminator) is reached. If we look at what the cstring looks like before we use the above code it would look like this:</p>

<blockquote><p>Sat May 20 15:21:51 2000\n\0</p></blockquote>

<p>After the code is run it will look like this:</p>


<blockquote><p>Sat May 20 15:21:51 2000\0\0</p></blockquote><div class="item_footer"><p><small><a href="http://www.ukdragon.com/blog/index.php/2010/01/18/remove-trailing-newline-character-from-asctime-output">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.ukdragon.com/blog/index.php/2010/01/18/remove-trailing-newline-character-from-asctime-output#comments</comments>
			<wfw:commentRss>http://www.ukdragon.com/blog/index.php?tempskin=_rss2&#38;disp=comments&#38;p=69</wfw:commentRss>
		</item>
				<item>
			<title>Firefox installer not working in Kubuntu 9.10</title>
			<link>http://www.ukdragon.com/blog/index.php/2009/11/12/firefox-installer-not-working-in-kubuntu-9-10</link>
			<pubDate>Thu, 12 Nov 2009 22:17:23 +0000</pubDate>			<dc:creator>Kieren Searle</dc:creator>
			<category domain="alt">Computing</category>
<category domain="alt">Linux</category>
<category domain="main">Kubuntu</category>			<guid isPermaLink="false">68@http://www.ukdragon.com/blog/</guid>
						<description>&lt;p&gt;I&amp;#8217;ve seen this a few times now. When you use the &amp;#8220;Mozilla Firefox Browser Installer&amp;#8221; application the installation seems to run through fine but no Firefox is installed. Attempting to run the application again results in an error message about it already being installed. To solve this I just install Firefox the old fashioned way:&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;codespan&quot;&gt;sudo apt-get install firefox-3.5&lt;/code&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.ukdragon.com/blog/index.php/2009/11/12/firefox-installer-not-working-in-kubuntu-9-10&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen this a few times now. When you use the &#8220;Mozilla Firefox Browser Installer&#8221; application the installation seems to run through fine but no Firefox is installed. Attempting to run the application again results in an error message about it already being installed. To solve this I just install Firefox the old fashioned way:</p>

<p><code class="codespan">sudo apt-get install firefox-3.5</code></p><div class="item_footer"><p><small><a href="http://www.ukdragon.com/blog/index.php/2009/11/12/firefox-installer-not-working-in-kubuntu-9-10">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.ukdragon.com/blog/index.php/2009/11/12/firefox-installer-not-working-in-kubuntu-9-10#comments</comments>
			<wfw:commentRss>http://www.ukdragon.com/blog/index.php?tempskin=_rss2&#38;disp=comments&#38;p=68</wfw:commentRss>
		</item>
				<item>
			<title>Adding scrollbars to a QWidget using a QScrollArea</title>
			<link>http://www.ukdragon.com/blog/index.php/2009/11/09/adding-scrollbars-to-a-qwidget-using-a-qscrollarea-1</link>
			<pubDate>Mon,  9 Nov 2009 15:09:38 +0000</pubDate>			<dc:creator>Kieren Searle</dc:creator>
			<category domain="alt">Computing</category>
<category domain="alt">Linux</category>
<category domain="alt">Programming</category>
<category domain="alt">c++</category>
<category domain="main">Qt</category>			<guid isPermaLink="false">67@http://www.ukdragon.com/blog/</guid>
						<description>&lt;p&gt;I have been fighting with Qt over the weekend to get a QWidget containing some buttons to scroll when there was overflow. I couldn&amp;#8217;t get a scrollbar to display for some time when my project consisted of a QMainWindow containing a QWidget that was subsequently wrapped in a QScrollArea&lt;/p&gt;

&lt;p&gt;I finally managed to get my scroller to work but I had to add an extra QWidget around the QScrollArea, so in effect I have a &lt;strong&gt;QMainWindow&lt;/strong&gt; -&amp;gt; &lt;strong&gt;QWidget&lt;/strong&gt; -&amp;gt; &lt;strong&gt;QScrollArea&lt;/strong&gt; -&amp;gt; &lt;strong&gt;QWidget&lt;/strong&gt;. Maybe some code will make things easier:&lt;/p&gt;

&lt;p class=&quot;amcode&quot;&gt;Code:&lt;/p&gt;&lt;div class=&quot;codeblock amc_code amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;//create our firt QWidget and put it in a QVBoxLayout and QScrollArea &lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;QWidget * mainWidget = new QWidget(this); &lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc3&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;QVBoxLayout * vLayout = new QVBoxLayout(mainWidget); &lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc4&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;QScrollArea * scrollArea = new QScrollArea(mainWidget); &lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc5&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;vLayout-&gt;addWidget(scrollArea);&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc6&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc7&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;//set up parameters for scroll area &lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc8&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;scrollArea-&gt;setWidgetResizable(false);&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc9&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc0&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;//create another widget with a QVBoxLayout &lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;QVBoxLayout * scrollAreaVLayout = new QVBoxLayout(); &lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;QWidget * scrollAreaWidgetContents = new QWidget(); scrollAreaWidgetContents-&amp;amp;gt;setLayout(scrollAreaVLayout); &lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc3&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;scrollAreaVLayout-&gt;setSizeConstraint(QLayout::SetFixedSize);&amp;#160;&amp;#160;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc4&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc5&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;//add scrolling widget to scroller &lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc6&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;scrollArea-&amp;gt;setWidget(scrollAreaWidgetContents);&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc7&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;this-&gt;setCentralWidget(mainWidget);&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This code goes into your QMainWindow. All you have to do now is add some objects to scrollAreaVLayout to cause some overflow and scrollbars will appear&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.ukdragon.com/blog/index.php/2009/11/09/adding-scrollbars-to-a-qwidget-using-a-qscrollarea-1&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I have been fighting with Qt over the weekend to get a QWidget containing some buttons to scroll when there was overflow. I couldn&#8217;t get a scrollbar to display for some time when my project consisted of a QMainWindow containing a QWidget that was subsequently wrapped in a QScrollArea</p>

<p>I finally managed to get my scroller to work but I had to add an extra QWidget around the QScrollArea, so in effect I have a <strong>QMainWindow</strong> -&gt; <strong>QWidget</strong> -&gt; <strong>QScrollArea</strong> -&gt; <strong>QWidget</strong>. Maybe some code will make things easier:</p>

<p class="amcode">Code:</p><div class="codeblock amc_code amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_default">//create our firt QWidget and put it in a QVBoxLayout and QScrollArea </span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc2"></div></td><td><code><span class="amc_default">QWidget * mainWidget = new QWidget(this); </span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc3"></div></td><td><code><span class="amc_default">QVBoxLayout * vLayout = new QVBoxLayout(mainWidget); </span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc4"></div></td><td><code><span class="amc_default">QScrollArea * scrollArea = new QScrollArea(mainWidget); </span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc5"></div></td><td><code><span class="amc_default">vLayout->addWidget(scrollArea);&#160;&#160;&#160;&#160;&#160;&#160;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc6"></div></td><td><code>&nbsp;</code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc7"></div></td><td><code><span class="amc_default">//set up parameters for scroll area </span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc8"></div></td><td><code><span class="amc_default">scrollArea->setWidgetResizable(false);&#160;&#160;&#160;&#160;&#160;&#160;</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc9"></div></td><td><code>&nbsp;</code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc0"><div class="amc1"></div></div></td><td><code><span class="amc_default">//create another widget with a QVBoxLayout </span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc1"><div class="amc1"></div></div></td><td><code><span class="amc_default">QVBoxLayout * scrollAreaVLayout = new QVBoxLayout(); </span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc2"><div class="amc1"></div></div></td><td><code><span class="amc_default">QWidget * scrollAreaWidgetContents = new QWidget(); scrollAreaWidgetContents-&amp;gt;setLayout(scrollAreaVLayout); </span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc3"><div class="amc1"></div></div></td><td><code><span class="amc_default">scrollAreaVLayout->setSizeConstraint(QLayout::SetFixedSize);&#160;&#160;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc4"><div class="amc1"></div></div></td><td><code>&nbsp;</code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc5"><div class="amc1"></div></div></td><td><code><span class="amc_default">//add scrolling widget to scroller </span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc6"><div class="amc1"></div></div></td><td><code><span class="amc_default">scrollArea-&gt;setWidget(scrollAreaWidgetContents);&#160;&#160;&#160;&#160;&#160;&#160;</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc7"><div class="amc1"></div></div></td><td><code><span class="amc_default">this->setCentralWidget(mainWidget);</span></code></td></tr>
</table></div>

<p>This code goes into your QMainWindow. All you have to do now is add some objects to scrollAreaVLayout to cause some overflow and scrollbars will appear</p><div class="item_footer"><p><small><a href="http://www.ukdragon.com/blog/index.php/2009/11/09/adding-scrollbars-to-a-qwidget-using-a-qscrollarea-1">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.ukdragon.com/blog/index.php/2009/11/09/adding-scrollbars-to-a-qwidget-using-a-qscrollarea-1#comments</comments>
			<wfw:commentRss>http://www.ukdragon.com/blog/index.php?tempskin=_rss2&#38;disp=comments&#38;p=67</wfw:commentRss>
		</item>
				<item>
			<title>Adding a QWidget class to a KMainWindow</title>
			<link>http://www.ukdragon.com/blog/index.php/2009/11/07/adding-a-qwidget-class-to-a-kmainwindow</link>
			<pubDate>Sat,  7 Nov 2009 16:09:04 +0000</pubDate>			<dc:creator>Kieren Searle</dc:creator>
			<category domain="alt">Computing</category>
<category domain="alt">Linux</category>
<category domain="alt">Programming</category>
<category domain="alt">c++</category>
<category domain="main">Qt</category>			<guid isPermaLink="false">65@http://www.ukdragon.com/blog/</guid>
						<description>&lt;p&gt;This week I started to create my first Qt application. One of the first problems I came across was that once I had created a class that inherited QWidget for it&amp;#8217;s display I wanted to place it into a KMainWindow display that I had already created earlier. My QWidget class was called &lt;strong&gt;ProgrammeViewer&lt;/strong&gt;. To insert this class into my KMainWindow I used the code:&lt;/p&gt;

&lt;p class=&quot;amcode&quot;&gt;Code:&lt;/p&gt;&lt;div class=&quot;codeblock amc_code amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;QWidget * programmeViwer = new ProgrammeViewer();&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This created a new QWidget object called programmeViewer using the ProgrammeViewer class. It&amp;#8217;s very simple but took me a while to figure out as I was first trying to create the QWidget object using the QWidget class and then attempting to link the object to the ProgrammeViewer class afterwards.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.ukdragon.com/blog/index.php/2009/11/07/adding-a-qwidget-class-to-a-kmainwindow&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>This week I started to create my first Qt application. One of the first problems I came across was that once I had created a class that inherited QWidget for it&#8217;s display I wanted to place it into a KMainWindow display that I had already created earlier. My QWidget class was called <strong>ProgrammeViewer</strong>. To insert this class into my KMainWindow I used the code:</p>

<p class="amcode">Code:</p><div class="codeblock amc_code amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_default">QWidget * programmeViwer = new ProgrammeViewer();</span></code></td></tr>
</table></div>

<p>This created a new QWidget object called programmeViewer using the ProgrammeViewer class. It&#8217;s very simple but took me a while to figure out as I was first trying to create the QWidget object using the QWidget class and then attempting to link the object to the ProgrammeViewer class afterwards.</p><div class="item_footer"><p><small><a href="http://www.ukdragon.com/blog/index.php/2009/11/07/adding-a-qwidget-class-to-a-kmainwindow">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.ukdragon.com/blog/index.php/2009/11/07/adding-a-qwidget-class-to-a-kmainwindow#comments</comments>
			<wfw:commentRss>http://www.ukdragon.com/blog/index.php?tempskin=_rss2&#38;disp=comments&#38;p=65</wfw:commentRss>
		</item>
			</channel>
</rss>
