Programming with Qt and over 2 million other books are available for Amazon Kindle . Learn more

Sign in to turn on 1-Click ordering.
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Image not available

Start reading Programming with Qt on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Programming with Qt: Writing Portable GUI applications on Unix and Win32 [Paperback]

Matthias Kalle Dalheimer
3.0 out of 5 stars  See all reviews (1 customer review)
Price: 34.50 & FREE Delivery in the UK. Details
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In stock but may require up to 2 additional days to deliver.
Dispatched from and sold by Amazon. Gift-wrap available.


Amazon Price New from Used from
Kindle Edition 16.43  
Paperback 34.50 Trade-In Store
Did you know you can use your mobile to trade in your unwanted books for an Gift Card to spend on the things you want? Visit the Books Trade-In Store for more details or check out the Trade-In Amazon Mobile App Guidelines on how to trade in using a smartphone. Learn more.

Book Description

1 Feb 2002 0596000642 978-0596000646 2

The popular open source KDE desktop environment for Unix was built with Qt, a C++ class library for writing GUI applications that run on Unix, Linux, Windows 95/98, Windows 2000, and Windows NT platforms. Qt emulates the look and feel of Motif, but is much easier to use. Best of all, after you have written an application with Qt, all you have to do is recompile it to have a version that works on Windows. Qt also emulates the look and feel of Windows, so your users get native-looking interfaces.

Platform independence is not the only benefit. Qt is flexible and highly optimized. You'll find that you need to write very little, if any, platform-dependent code because Qt already has what you need. And Qt is free for open source and Linux development.

Although programming with Qt is straightforward and feels natural once you get the hang of it, the learning curve can be steep. Qt comes with excellent reference documentation, but beginners often find the included tutorial is not enough to really get started with Qt. That's where Programming with Qt steps in. You'll learn how to program in Qt as the book guides you through the steps of writing a simple paint application. Exercises with fully worked out answers help you deepen your understanding of the topics. The book presents all of the GUI elements in Qt, along with advice about when and how to use them, so you can make full use of the toolkit. For seasoned Qt programmers, there's also lots of information on advanced 2D transformations, drag-and-drop, writing custom image file filters, networking with the new Qt Network Extension, XML processing, Unicode handling, and more.

Programming with Qt helps you get the most out of this powerful, easy-to-use, cross-platform toolkit. It's been completely updated for Qt Version 3.0 and includes entirely new information on rich text, Unicode/double byte characters, internationalization, and network programming.

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 23.1 x 2.8 cm
  • Average Customer Review: 3.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: 50,747 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

5 star
4 star
2 star
1 star
3.0 out of 5 stars
3.0 out of 5 stars
Most Helpful Customer Reviews
8 of 8 people found the following review helpful
3.0 out of 5 stars Good for starters 15 Oct 2004
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?
Most Helpful Customer Reviews on (beta) 3.6 out of 5 stars  18 reviews
22 of 22 people found the following review helpful
5.0 out of 5 stars excellent book for learning Qt 13 Aug 2002
By Elwood C. Downey - Published on
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
5.0 out of 5 stars Very good book 26 Oct 2003
By A Customer - Published on
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
5.0 out of 5 stars Handy Programming Help 9 Aug 2002
By Oliver Ruf - Published on
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
4.0 out of 5 stars A better version of the documentation 20 July 2003
By C. McManis - Published on
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
4.0 out of 5 stars 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
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category