Programming with Qt and over 2 million other books are available for Amazon Kindle . Learn more
FREE Delivery in the UK.
Only 1 left in stock.
Dispatched from and sold by Amazon.
Gift-wrap available.
Trade in your item
Get a £0.40
Gift Card.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

Programming with Qt: Writing Portable GUI applications on Unix and Win32 Paperback – 1 Feb 2002

See all 2 formats and editions Hide other formats and editions
Amazon Price New from Used from
Kindle Edition
"Please retry"
"Please retry"
£17.03 £15.43

Trade In this Item for up to £0.40
Trade in Programming with Qt: Writing Portable GUI applications on Unix and Win32 for an Amazon Gift Card of up to £0.40, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Product details

  • Paperback: 522 pages
  • Publisher: O'Reilly Media; 2 edition (1 Feb 2002)
  • Language: English
  • ISBN-10: 0596000642
  • ISBN-13: 978-0596000646
  • Product Dimensions: 17.8 x 2.8 x 23.3 cm
  • Average Customer Review: 3.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: 1,184,340 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description


"I recommend Programming with Qt. It provides a comprehensive overview of the library, from basic controls and text processing to graphics and event handling" -- Alan C. Moore, Ph.D., Delphi Informant, May 2002

"If you want to use Qt, or just know what it can do, this is essential reading." -- Major Keary, AUSOM & AUSOM News, June 2002

A very well-written book, and a worthwhile read for all but the most advanced Qt programmer. -- Maurice Kelly, LinuxFormat, August 2002

one of the richest and most complete guides of any GUI Toolkit books I've read so far. -- Eugenia Loli-Queru,, March 4, 2002

About the Author

Matthias Kalle Dalheimer is the President & CEO of Klar?lvdalens Datakonsult AB, a virtual company with employees spread out over Northern and Central Europe. They specialize in platform-independent software development, often using Qt, of course. Kalle is a core team member of the KDE Project, where he has held lots of voluntary positions, including library maintainer and evangelist. He currently maintains the KLyX and KChart applications. In his spare time, Kalle continuously rebuilds his old farm in the middle of the Swedish forests where he lives with his wife, his son, and his soon-to-be-expected second child; helps his son build up wooden miniature railways; and enjoys hikes in the forest, gardening and carpentry. Kalle has written and translated a number of books for O'Reilly & Associates, among others a (German) book about KDE and (together with Matt Welsh and Lar Kaufman) Running Linux.

Customer Reviews

3.0 out of 5 stars
5 star
4 star
3 star
2 star
1 star
See the customer review
Share your thoughts with other customers

Most Helpful Customer Reviews

8 of 8 people found the following review helpful By Ricardo Cardenes on 15 Oct 2004
Format: Paperback
It's a good book if you have absolutely no idea about Qt, but it probably won't help you if you want insight in more advanced or subtle Qt. There are better books about Qt, and more current (this one is getting a bit old, even more with Qt4).
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Helpful Customer Reviews on (beta) 19 reviews
22 of 22 people found the following review helpful
excellent book for learning Qt 13 Aug 2002
By pidloop - Published on
Format: Paperback
I hesitated to buy this after reading the negative reviews here. I am glad I did. It is exactly what I needed. It touches on the necessary basics of C++, event driven programming and covers how to download and install the Qt environment in the first chapter. The second is Hello World, the next few are guided tours of the major widgets, then some 20+ more chapters cover Qt by topic because it is much more than a GUI toolkit. The style is succinct yet easy to absorb. It took me about two days to read through it carefully. In that brief time now I just use the online Qt help for detail info.
17 of 17 people found the following review helpful
Very good book 26 Oct 2003
By A Customer - Published on
Format: Paperback
I am new to Linux programming (I'm a .Net developer) and was a bit frustrated with the online tutorials for Qt and decided to give this book a try. I am very happy with the decision, this book is very well written. I like the style of the author, giving us some practical exercises after each topic, so we can improve the application he develops throughout the book (a "paintbrush"). Now that I understood the basics I can use the Qt documentation to do my own apps.
People who like those huge, "step-by-step" ("click File->Quit to exit the application...") books might be a bit disappointed with this one though, the author assumes that the reader knows some C++ and can figure out some stuff by himself/herself, so be warned. Not that he skips any information needed, but he doesn't repeat the same thing 10x either, so you gotta be a bit "smart" to read this book.
15 of 15 people found the following review helpful
Handy Programming Help 9 Aug 2002
By Oliver Ruf - Published on
Format: Paperback
I find this book is very good. It provides quick help while programming, gives a lot of ideas how to solve problems, and a quick overview how the most common problems have to be dealt with.
But - yes, there is a 'but' - it is definitively not a book about GUI programming, it's about QT! If you are familiar with GUI development, such as java/swing programming or similar, and you are also familiar with C++, this book can be a great help for development.
11 of 11 people found the following review helpful
A better version of the documentation 20 July 2003
By C. McManis - Published on
Format: Paperback
One reviewer slams this book because it just rehashes the freely available help files and tutorials. That is not a fair assesment as Matthias does a good job of explaining what he is doing and how. The "free" help pages are pretty terse in this regard.
I can't give it 5 stars however because it doesn't take the time to talk about *how* to get your programs to compile in various environments (I use FreeBSD) and that can leave the reader very unsatisfied. There is enough on-line documentation to figure it out, but some pointers in this book would have really enhanced the experience.
Of course, if you aer using the KDE desktop this book is essential. This combined with the book on KDE is a good set for anyone who wants to develop applications for Linux (or FreeBSD).
9 of 9 people found the following review helpful
Good, if outdated, introduction to Qt 1 Nov 2005
By Andrew Fairley - Published on
Format: Paperback Verified Purchase
Book starts out strong, and was helpful as an introduction for Qt. However, it seems to cut out about 350 pages in, putting subjects such as "Focus Handling" in its own 3 page chapter, rather than integrating it into an existing chapter. That said, the Portability chapter, which includes a list of Qt functions that are not portable, was a valuable addition.

Keep in mind, the 2nd edition of Programming for Qt was written for Qt 3. At the time of this review, the latest version of Qt is version 4. This is a problem because Trolltech appears to reinvent the wheel for each major version. While the author had me salivating at the thought of a QStyleSheet, checking the API docs for Qt 4 QStyleSheet is now a deprecated class, and as far as I can tell there is no current equivalent.

One aspect I wish the author had covered in more detail is the actual compiling and linking of applications that use Qt. I'm starting to get the impression that Trolltech's dirty little secret is that while their API is both clean and thorough, the signal/slot method is overly reliant on #defines, and the developer has to compile and link as many as twice the number of files to make it function. Trolltech includes a program 'qmake' almost as a bandaid which will generate Makefiles that will then automatically generate and compile the extra 'moc' files. The problem is that if you're porting an application to Qt, you're likely to have existing makefiles. Adding the additional layer of qmake and it's .pro files is both cumbersome and not actually necessary. While you can certainly figure out on your own how to avoid using qmake, it would have been helpful if the book described the functionality of the qmake-generated makefiles. This would help developers porting to Qt to include that functionality in their existing makefiles.
Were these reviews helpful? Let us know