<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Slopjongs weblog &#187; C++</title>
	<atom:link href="http://slopjong.de/tag/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://slopjong.de</link>
	<description>A geek discovering the World, Tech &#38; Science</description>
	<lastBuildDate>Sun, 15 Apr 2012 14:03:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Qt: set the main window title from everywhere</title>
		<link>http://slopjong.de/2012/01/05/qt-set-the-main-window-title-from-everywhere/</link>
		<comments>http://slopjong.de/2012/01/05/qt-set-the-main-window-title-from-everywhere/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 11:35:18 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=5305</guid>
		<description><![CDATA[In Qt the title of the main window can be set from everywhere and thankfully to the QApplication class we gain access to all created widgets by using the method findChildren() or topLevelWidgets(). The difference between both is that findChildren() returns a list only with widgets which reside inside another widget and in contrast topLevelWidgets() [...]]]></description>
		<wfw:commentRss>http://slopjong.de/2012/01/05/qt-set-the-main-window-title-from-everywhere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qt: error message telling the copy constructor is private</title>
		<link>http://slopjong.de/2011/12/30/qt-error-message-telling-the-copy-constructor-is-private/</link>
		<comments>http://slopjong.de/2011/12/30/qt-error-message-telling-the-copy-constructor-is-private/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 17:46:00 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=5275</guid>
		<description><![CDATA[In the following code sample a singleton is implemented with a static instance getter which can be called in any other class.

class MyClass{

public:

    static MyClass *instance(){
        if(!m_instance)
            m_instance = new MyClass;
    [...]]]></description>
		<wfw:commentRss>http://slopjong.de/2011/12/30/qt-error-message-telling-the-copy-constructor-is-private/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qt: QString constant in a class</title>
		<link>http://slopjong.de/2011/12/24/qt-qstring-constant-in-a-class/</link>
		<comments>http://slopjong.de/2011/12/24/qt-qstring-constant-in-a-class/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 13:24:11 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Code Snippet]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=5207</guid>
		<description><![CDATA[A constant QString can be achieved by defining the macro

#CONSTSTRING "-_-"

and by creating a temporary QString instance in each place the constant is needed e.g. for a window title.

...
window.setWindowTitle(QString(CONSTSTRING));
...

A lot of the Qt goodness is due to macros but most of them are defined as empty for good reason. Macros are processed by a preprocessor [...]]]></description>
		<wfw:commentRss>http://slopjong.de/2011/12/24/qt-qstring-constant-in-a-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;staticMetaObject&#8217; is not a member</title>
		<link>http://slopjong.de/2008/10/07/staticmetaobject-is-not-a-member/</link>
		<comments>http://slopjong.de/2008/10/07/staticmetaobject-is-not-a-member/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 15:33:18 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://blog.romainschmitz.eu/?p=56</guid>
		<description><![CDATA[I tried to compile a code looking like this:

#ifndef CONTROLLER_H_
#define CONTROLLER_H_

#include&#60;QObject&#62;

class AbstractClass
{
public:
    virtual ~AbstractClass() {}
    virtual void update() = 0;
};

class Controller :
      public AbstractClass, public QObject
{
      Q_OBJECT

public:
      Controller();
      virtual [...]]]></description>
		<wfw:commentRss>http://slopjong.de/2008/10/07/staticmetaobject-is-not-a-member/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>error: stray &#8216;\160&#8242; in program</title>
		<link>http://slopjong.de/2008/10/03/error-stray-160-in-program/</link>
		<comments>http://slopjong.de/2008/10/03/error-stray-160-in-program/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 21:27:20 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://blog.romainschmitz.eu/?p=55</guid>
		<description><![CDATA[I was experimenting with virtual and pure virtual methods in C++. I introduced an inline implementation for a pure method and then I couldn&#8217;t compile my code anymore.
I turned into the &#8220;show invisibles&#8221; mode and found the malefactor. The problem was an invisible character in the source file.
]]></description>
		<wfw:commentRss>http://slopjong.de/2008/10/03/error-stray-160-in-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pointer</title>
		<link>http://slopjong.de/2008/10/03/pointer/</link>
		<comments>http://slopjong.de/2008/10/03/pointer/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 16:17:34 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[pointer]]></category>

		<guid isPermaLink="false">http://blog.romainschmitz.eu/?p=54</guid>
		<description><![CDATA[Here are examples about how you can declare pointer in the programming language C++:

char* p;             //p is a pointer to char
char const* p;       //p is a pointer to const char
const char* p;      [...]]]></description>
		<wfw:commentRss>http://slopjong.de/2008/10/03/pointer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

