The Independent Qt® Tutorial

The Independent Qt Tutorial is an on-line book aiming to cover most topics involved in the process of developing professional quality Qt applications. The text is example driven, filled with lots of tips and has links to the official Qt documentation.

If you are interested in the latest version of Qt, version 4, you might be interested to know that I've written a book called the Foundations of Qt Development available from APress.

Table of Contents

  1. Qt, Loose Coupling and Event Driven Programming [ FR | IT ]
  2. The Qt Object Model [ FR | IT ]
  3. Qt Resources on the Internet [ FR | IT ]
  4. The Qt Tools [ FR | IT ]
  5. A Basic Qt Application [ FR | IT ]
  6. A Hand Made Qt Application [ FR | IT ]
  7. The Address Book [ FR | IT ]
  8. Files, Directories and Streams [ FR | IT ]
  9. XML [ FR | IT ]
  10. Input Validation [ FR | IT ]
  11. Qwt [ FR | IT ]
  12. The Canvas [ FR | IT ]
  13. Lists, Trees and Tables [ FR | IT ]
  14. OpenGL [ FR | IT ]
  15. Text and Internationalization
  16. Drag and drop

Italic chapter titles mark future chapters. Links between square brackets lead to translated versions of each chapter.


Intended Audience

The book has been written for the C++ programmer who is fairly new to Qt. Trolltech®, the company behind Qt, offers a great reference documentation and two great tutorials. This, The Independent Qt Tutorial, aims at providing even more tutorial information to complement the reference documentation.

Here follows some recommended links, there are more links in chapter three.


The table of contents of the French translation.

The table of contents of the Italian translation.

Off-line Version

The entire tutorial is available as an archive for downloading and off-line browsing. Get the current version!

There is also a french and and italian version ready for off-line reading. Visit the TOCs for each language to download their off-line version.



20060629Updated the legal section to comply with Trolltech's requirements for using the trademark Qt.
20060110Changed all QtForum references to QtCentre - the new free - Qt Community.
20051126Updated chapter five in the french edition with a minor correction, thanks to Christophe Osuna for pointing it out.
20051125Updated chapter two with a spelling correction, thanks to Deneys S. Maartens for pointing it out.
20050227Updated chapter three with some additional links.
20050212The italian translation is now in sync with the english text. Thanks alot to Fabrizio Angius!
Also, a couple of new links were added to chapter three.
20050130The french translation is now in sync with the english text. Thanks alot Jean-luc!
20050127A new chapter has been added to the french translation. Thanks Jean-luc!
20050124Added instructions for Windows users to chapter 14 and included math.h where needed. Thanks to Stefan Boeykens for feedback!
20050124A new chapter about OpenGL based on NeHe's OpenGL Tutorial.
20050123Thanks to Fabrizio Angius [qtsolutions -A-T-], there is an italian translation available. Currently, the first twelve chapters are available. Thanks alot!
20041126A new french chapter has been added. Thanks Jean-luc!
Thanks to Tom Verbreyt and Witold Wysota lots of small errors have been corrected. Thanks alot!
20041112A brand new chapter has been added: Lists, Trees and Tables. Enjoy!
20041018Fixed an error in chapter ten.
20041013Fixed a broken link in chapter two.
20040924The Qt Widget Gallery has been added to chapter three, and chapter nine has been translated to French. Again, credits to Jean-Luc!
20040802Chapter eight has been added to the French translation. Lots of credits to Jean-Luc!
20040801Yet another French chapter has been added. Jean-Luc maintains an impressive tempo translating, lots of thanks!
Updated the build scripts so that there is a french off-line version available.
20040729Numerous little fixes with the Fr version over the last couple of days. Chapter six has been added to the Fr version.
20040727Added the first five chapters of the French translation. Use the FR-links or the link to the French TOC to reach it. Credits goes to the webmaster, Jean-Luc, of Also added that site to chapter three and removed a link to the KDE Forum since their programming section has moved to QtForum.
20040703Introduced some scripting magic to make it possible to maintain one source for the off-line and on-line versions while only having some paragraphs in the on-line version (e.g. mirrors, where to download the off-line version, GoogleAds, Google search).
20040629Updated chapter nine according to a suggestion from anda_skoa from
20040626More quickies... Chapter seven has been improved (and adapted to newer versions of Designer.)
Chapter two has been equiped with downloadable sample code.
The off-line version has been fixed (the links to the samples did not work.)
20040625Tried to recover the material from a computer fire. Seems to have worked, tell me if you notice any oddities.
Added a link to Ariya Hidayat's FAQ.
Fixed some small issued pointed out by various people. Thanks all!
20040502Chapter two has been completely rewritten. From being a quick, theoretical, look at the Qt object model it now has lots of example code and covers details of the model.
20040329New chapter! This time about the canvas!
Also added a section on the intended audience.
20040325Fixed chapters five and six using corrections from Amos. Thanks again.
Also added a link to an article to chapter three.
20040320Many corrections. Lots of credits to Amos who has done an amazing job providing feedback. Thanks alot!
20040309Added a link to Justin Karneges article on signal-safety to chapter three.
20040222A new chapter about Qwt.
A new link (in chapter three, credits to Andi Peredri).
Moved qtforum's mirror.
20040205Fixed a link (credits to Thomas Fischer).
Fixed the examples of chapter 9 (credits to the webserver logs).
20040203Improved style sheet (credits to Thomas Fischer).
20040125Added two new chapters. Chapter eight is a complete re-write, chapter nine is completely new (credits to Michael Goettsche for proofing and feedback). Some minor updates have been made too.
20040104Fixed, and added, lots of text in many chapters (credits to Michael Goettsche).
Also, wants to say Happy New Year!
20031228Fixed lots of typos in chapter seven (credits again to Evan Sevire).
20031227Fixed lots of typos in chapter eight (credits to Evan Sevire).
Two forums and a knowledge base have been added to chapter three.
Added a link to the first mirror (it will be up ASAP, credits to Christian Kienle).
Chapter nine has been given some more details (credits to Jan Pihlgren).
Added a reference to the qt-interest mailing list in chapter five (credits to Perry and Sylviane White).
Fixed a typo in chapter two (credits to Andy Beatty).
20031221Got added to the Loads of Linux Links site.
20031218Fixed lots of small things, typos, a link, etc. Also put some text in the appendix (it got lost in the conversion to XHTML) and put the appendix in the downloadable archives (my script missed it). The dotsy article was noted by OSNews, causing a huge increase in traffic. Thanks goes to everybody providing feedback and encouragement!
20031217Completely new first chapter (less theory). Fixed POD misshapp in chapter seven. Complete change of chapter three (mail me links). Thanks to all readers providing feedback through dotsy.
20031205Added a new chapter on input validation.
20031202Used W3C's validator to check the XHTML. It passed: Valid XHTML1.0.
20031130Finally the update is done. Many small corrections - thanks to all that provided me with feedback and critisism.
20031121Start of huge re-write and update. Completely new css and strict xhtml pages.
20031102Uploaded the missing pngs for chapter eight.
20031030Chapter eight is on-line! Also changed the page titles so that it is easier to save them (thanks to Biju Kunnappada for pointing that out). Finally, created a downloadable archive for off-line browsing.
20030904Finally the text of chapter six is done!
20030903Fixed a few items pointed out by JP. Also, some minor work with the css.
20030902Second official publishing. New style-sheet more introduced, more structure to chapter six, but I still consider it notes, and not really done.
20030808First official publishing. New style-sheet, chapter seven is done, chapter six is underway but not written.
20030122Introduced an appendix and pages for chapters six and seven. Also, some small fixes. Thanks (again) to JP for great reviewing.
20030118Extended the road map with chapter six and seven and fixed several issues pointed out by JP.
20030116Added chapter 5.
20030112Fixed a number of issues pointed out by Jan Pihlgren (jan-at-pihlgren-dot-se), the most important was to add some details about qmake. Big thanks to him!
200212xxInitial version.

This is a part of and is valid XHTML.