<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>PyQt Digest</title>
	<atom:link href="http://pyqt.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pyqt.wordpress.com</link>
	<description>Digest, not swallow. But in Python. And of course, about Qt.</description>
	<lastBuildDate>Sun, 23 Nov 2008 16:47:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pyqt.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>PyQt Digest</title>
		<link>http://pyqt.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pyqt.wordpress.com/osd.xml" title="PyQt Digest" />
	<atom:link rel='hub' href='http://pyqt.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The Qt Hierarchy</title>
		<link>http://pyqt.wordpress.com/2008/11/23/the-qt-hierarchy/</link>
		<comments>http://pyqt.wordpress.com/2008/11/23/the-qt-hierarchy/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 16:47:08 +0000</pubDate>
		<dc:creator>Harsh</dc:creator>
				<category><![CDATA[Qt]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Modules]]></category>
		<category><![CDATA[QtCore]]></category>
		<category><![CDATA[QtGui]]></category>

		<guid isPermaLink="false">http://pyqt.wordpress.com/2008/11/23/the-qt-hierarchy/</guid>
		<description><![CDATA[So to continue about Qt, lets talk about the division of the modules in it. There are two major (not the only) modules in Qt, namely: QtCore, and QtGui What is QtCore? QtCore as the name goes, has core-stuff. By core I mean simple and basic functional stuff, like data structures and associated methods, that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyqt.wordpress.com&amp;blog=3813118&amp;post=9&amp;subd=pyqt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So to continue about Qt, lets talk about the division of the modules in it.</p>
<p>There are two major (not the only) modules in Qt, namely:</p>
<ul>
<li>QtCore, and
</li>
<li>QtGui</li>
</ul>
<p><span style="font-weight:bold;">What is QtCore?</span></p>
<div style="margin-left:40px;"><span style="font-weight:bold;">QtCore</span> as the name goes, has <span style="font-style:italic;">core</span>-stuff. By core I mean simple and basic functional stuff, like data structures and associated methods, that doesn&#8217;t have anything to do with Graphics or GUI directly but provide several benefits. Things in this include classes like (a few):
</div>
<ul style="margin-left:40px;">
<li>QPoint &#8211; Define and move co-ordinates (x,y)</li>
<li>QLine &#8211; Define a line of two points (x1, y1) and (x2, y2)
</li>
<li>QRect &#8211; Define a rectangle starting at (x,y) and of certain (width by height).</li>
</ul>
<div style="margin-left:40px;">Not just these geometry stuff, but also other classes providing timer functions, file and directory I/O, buffers, threads and concurrency control, generic containers like lists, stacks and dictionaries, etc. Everything provided is also highly optimized.</p>
<p><span style="font-weight:bold;">Code to include all from this module</span>:<br />
<pre class="brush: python;">from PyQt4.QtCore import *</pre></p>
<p><a href="http://doc.trolltech.com/4.4/qtcore.html">Reference on entire QtCore</a> | <a href="http://doc.trolltech.com/4.4/qrect.html">The QRect class documentation example</a></p>
<p>An example deserves a post of its own, which will come soon.
</p></div>
<p><span style="font-weight:bold;">What is QtGui?</span></p>
<div style="margin-left:40px;"><span style="font-weight:bold;">QtGui</span> deals with all things graphical and the UI both. This area includes classes for handling image files, various widgets of a UI like a progress-bar, tabbed windows, MDI interfaces, and also action classes that handle all events a user may perform, like mouse clicks, close or show events. Some of the QtGui classes (again, a few):
</div>
<ul style="margin-left:40px;">
<li>QImage &#8211; Open an image and process upon it.</li>
<li>QWidget &#8211; Draw a simple plain window.</li>
<li>QListWidget &#8211; Create a simple list-box widget to hold things.</li>
</ul>
<div style="margin-left:40px;">All class associated with the look-and-feel and the working-logic of the UI and other graphical components are also enclosed within this module. This includes tree-models for showing directory hierarchy directly, printer configurations, brushes and pens for drawing shapes, etc. Almost every provided feature works perfectly across all platforms.</p>
<p><span style="font-weight:bold;">Code to include all from this module</span>:<br />
<pre class="brush: python;">from PyQt4.QtGui import *</pre></p>
<p><a href="http://doc.trolltech.com/4.4/qtgui.html">Reference on entire QtGui</a> | <a href="http://doc.trolltech.com/4.4/qimage.html">The QImage class documentation example</a></p>
<p>A basic example would be the <a href="http://pyqt.wordpress.com/2008/05/25/hello-world/">Hello World!</a> post, but an advanced one will soon be available.
</div>
<p><span style="font-weight:bold;"><br />
Footnotes:</span></p>
<p>The best way to learn and use Qt is to follow the <a href="http://doc.trolltech.com/4.4/">Qt Documentation</a> (The Qt Assistant comes along with the installation). Though it is C++ centric, its not much different when you use it in Python. Qt is Qt everywhere, across platforms and across languages too.</p>
<br />Posted in Qt Tagged: Documentation, Modules, QtCore, QtGui <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyqt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyqt.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyqt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyqt.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyqt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyqt.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyqt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyqt.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyqt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyqt.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyqt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyqt.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyqt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyqt.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyqt.wordpress.com&amp;blog=3813118&amp;post=9&amp;subd=pyqt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyqt.wordpress.com/2008/11/23/the-qt-hierarchy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pyqt</media:title>
		</media:content>
	</item>
		<item>
		<title>So wait, what&#8217;s Qt about? &#8211; Part 1</title>
		<link>http://pyqt.wordpress.com/2008/05/26/so-wait-whats-qt-about-part-1/</link>
		<comments>http://pyqt.wordpress.com/2008/05/26/so-wait-whats-qt-about-part-1/#comments</comments>
		<pubDate>Mon, 26 May 2008 13:28:03 +0000</pubDate>
		<dc:creator>Harsh</dc:creator>
				<category><![CDATA[Qt]]></category>
		<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://pyqt.wordpress.com/?p=4</guid>
		<description><![CDATA[The first GUI toolkit on Python I tried was PyGTK. I used the available free manual and it started very smooth, with the author explaining every part of GTK and not jumping into actual usage of Python for GTK right away. What I wish to convey here is that the manuals assumed you do not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyqt.wordpress.com&amp;blog=3813118&amp;post=4&amp;subd=pyqt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The first GUI toolkit on Python I tried was <a href="http://www.pygtk.org">PyGTK</a>. I used the available free manual and it started very smooth, with the author explaining every part of GTK and not jumping into actual usage of Python for GTK right away. What I wish to convey here is that the manuals assumed you do not know what GTK is and thus make it easier for the total newcomers.</p>
<p>Sadly, so far at least, this has not been the case with PyQt. The two major books I was suggested over various channels of Freenode IRC were <a title="Rapid GUI Programming with Python and Qt" href="http://www.qtrac.eu/pyqtbook.html" target="_blank">Mark Summerfield&#8217;s Rapid GUI</a> and <a title="GUI Programming with Python - Qt Edition" href="http://www.commandprompt.com/community/pyqt/" target="_blank">Boudewijn Rempt&#8217;s GUI Programming</a>.</p>
<p>The first book covers Python and then covers QT programming from the <em>Python perspective</em>. This means it assumes you know much about Qt&#8217;s classes already and its just gonna help you do it all the Python way instead of C++.</p>
<p>The second book relaxes moderately on the Python perspective but after the first 2-3 example application it tutors you through, it dives in <em>too deep for beginner comfort</em>. Not to mention it is also surrounded by the use of a commercial (paid) IDE called <a title="theKompany - BlackAdder IDE" href="http://www.thekompany.com/products/blackadder/" target="_blank">BlackAdder</a>. This makes the learning more difficult, or perhaps more expensive if approached linearly.</p>
<p>Both these books however fail to mention any introduction part to the Qt class hierarchy.</p>
<p>For C++, on the other hand, Mark and Jasmine&#8217;s book <a title="C++ GUI Programming with Qt" href="http://www.amazon.com/gp/product/0132354160" target="_blank">C++ GUI Programming with Qt</a> takes off really well with enough details about QObject, QWidget hierarchies popping in once a while.</p>
<p>I struggled real hard for around 2 days just to write a simple calculator application from scratch in Python due to these lack of proper documentations/manuals. I wish this does not happen to you and so I shall write things that are essentially Qt and not language-dependent in posts titled this. I do not know how many parts it will go on to but its essential and very much needed.</p>
<p>I shall also try to address the issues with choosing the proper IDE for PyQt development as I write up these explanatory posts. Please bear with me. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pyqt.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pyqt.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyqt.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyqt.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyqt.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyqt.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyqt.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyqt.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyqt.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyqt.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyqt.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyqt.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyqt.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyqt.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyqt.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyqt.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyqt.wordpress.com&amp;blog=3813118&amp;post=4&amp;subd=pyqt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyqt.wordpress.com/2008/05/26/so-wait-whats-qt-about-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pyqt</media:title>
		</media:content>
	</item>
	</channel>
</rss>
