Programming with QT: Writing Portable GUI Applicat: Writing Portable GUI applications on UNIX and Win32 Paperback – Apr 11 1999
There is a newer edition of this item:
No Kindle device required. Download one of the Free Kindle apps to start reading Kindle books on your smartphone, tablet, and computer.
To get the free app, enter your e-mail address or mobile phone number.
Programming with Qt offers an excellent introduction to the Qt toolkit, a powerful C++ graphical user interface (GUI) library that allows developers to create interfaces that run under both Unix and Windows. The book first looks at the strengths of the Qt library: it provides excellent cross-platform support, good performance, and ease of use for the C++ programmer.
After a basic application, the book moves onto the event model in Qt, which uses signals and slots to attach events to code. The author demonstrates that Qt is a remarkably sophisticated user interface library. Early sections examine programming menus, including pop-up menus, basic widgets, or controls (such as labels and listboxes), and more complex controls (such as sliders, progress bars, listviews, and tables).
Next the book presents material on Qt's built-in dialogs (for message boxes and opening and saving files) and layout managers. The author investigates Qt's container classes (such as arrays and dictionaries) and offers a lot of material on 2-D graphics, including printing, saving, and loading images.
Later chapters look at validating text and working with files and directories, with tips on important topics such as focus handling, internationalization, portability, and debugging. (The author even shows you how to work with Qt in Perl and reviews several Qt GUI builders that help automate design.)
Filled with expert advice and sample code, this guide makes a strong case that both Unix and Windows developers should try out Qt. --Richard Dragan
Read the full review for this book.
One area the author focuses on throughout the book, and to good effect, is Qt's use of signals and slots. (These are not traditional UNIX IPC signals, but a variation unique to Qt.) This is the technology that notifies specific parts of a program when UI events happen, such as users clicking on a button or an item in a listbox. Every application framework has its own way of performing this "plumbing," and understanding it well enough to get notifications in the right places, forward them effectively, and so on, is critical to using the framework. Dalheimer clearly appreciates this fact, and doesn't just talk about Qt's signals and slots once and then move on, but returns to the topic several times in different contexts. --Lou Grinzo, Dr. Dobb's Electronic Review of Computer Books -- Dr. Dobb's Electronic Review of Computer BooksSee all Product Description
Top Customer Reviews
It might be a bit dated now. As there are newer books for the same topic.
All in all, if you are looking for a triligy about QT, view this book and the other two that I found.
Most Helpful Customer Reviews on Amazon.com (beta)
I don't agree that this book doesn't contain good samle codes. While reading it I compiled and ran the most of examples.
The problem with the book is that it's based on the obsolete version of Qt (1.4x, current is 2.02), so some classes and functions have changed a bit.
Reading the Qt mailing list I noticed that many people who start reading fail to compile the very 1st example "Hello, World"at p.13, because now QLabel constructor has different arguments. But the book has errata page in the Internet, you may check it.
In any case right now it's the only Qt book. Troll Tech people are still preparing their own (Qt: The Officiak Documentation).
As a good typist, I generally like to type in programming examples as it makes me read and think about the code - rather than just blindingly copying it. Beware, there are MANY mistakes in the source code. Several do NOT compile! I spent a long time finding mistakes. I even sent the fixes to the author and the publisher. They thanked me the first few times, and then never replied to my later postings. You figure they would have appreciated all of them AND should have pointed out other mistakes before I ran into them (since others must have pointed out these mistakes as well).
Even though signals/slots are covered these are SUCH a LARGE component of Qt that the book does not even begin to really discuss the complexities of them enough. To be fair, the author points this out, but to not deal in detail with signals/slots when learning Qt is a big handicap. Not dealing with signals/slots in detail with LOTS of EXAMPLES is sort of a cop-out.
I do believe that Qt is mostly that: 'Cute'. It also is an excellent candidate for 'easy' GUI programming. What I wanted to find out among other things was whether Qt is a potential industrial strength full replacement of either Motif or the Windows API or both.
Unfortunately, Matthias' book falls a little short of the answer, being too loyal to Qt to point out any shortcomings. It rightfully, if drily and repetitively, points out why Qt might be better or more suitable for easy-to-write (relatively speaking) and somewhat portable GUI-based applications.
The book faithfully takes you through all the details of the tutorials which are arranged in suitably increasing difficulty. In the last few chapters it also discusses version 2.0 of Qt (yet to be released), the Perl interface and the available GUI builders.
The book isn't designed as a reference manual, so you will have to stick with the Qt online reference. The tone of the book is rather dry and occasionally repetitive, which works somewhat like your favorite Latin teacher.
What's missing? A discussion of Qt's features compared to established GUIs (in particular customization and 'Desktop' issues), a stronger connection to the KDE project (after all, it _is_ possible to write a Window Manager using Qt, so what did that take?) and maybe a little more casual tone or even humor.
This book makes a good overview, but needs more depth. At the time, it was about the only book available, so I cannot say that it was a mistake to get the book when I did. I hope that other books coming out on Qt have more depth and more complete explanations.
Look for similar items by category
- Books > Computers & Technology > Operating Systems > Unix
- Books > Computers & Technology > Programming > APIs & Operating Environments > Unix
- Books > Computers & Technology > Programming > APIs & Operating Environments > Win32 API
- Books > Computers & Technology > Programming > C
- Books > Computers & Technology > Software
- Books > Professional & Technical > Professional Science > Mathematics
- Books > Textbooks > Computer Science & Information Systems > Programming Languages