Home > Store > Programming > User Interface (UI)

larger cover

Add To My Wish List

C++ GUI Programming with Qt 3

Register your product to gain access to bonus material or receive a coupon.

  • Description
  • Downloads
  • Extras
  • Reviews
  • Sample Content

Product Author Bios

Jasmin Blanchette, Trolltech's documentation manager and a senior developer, has worked at Trolltech since 2001. He is editor of Qt Quarterly, Trolltech's technical newsletter, and coauthored C++ GUI Programming with Qt 3.

Mark Summerfield works as an independent trainer and consultant specializing in C++, Qt, and Python. He was Trolltech's documentation manager for almost three years and coauthored C++ GUI Programming with Qt 3.



"...not only the best book on Qt I have ever seen, but also the best book presenting any programming framework. Every sentence appears to be carefully worded, and every chapter has a sound concept, and so does the work as a whole." --Matthias Ettrich, Trolltech's lead developer, founder of the KDE project

"The 'Tao of Qt'.... The Qt system is a beautiful example of object oriented design, and the authors take advantage of this.... The authors have done an excellent job of presenting the subject in an interesting and engaging way...." --Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, The Behrend College

The first official Trolltech guide to Qt 3.2 programming!

Straight from Trolltech, this book covers all you need to build industrial-strength applications with Qt 3.2.x and C++--applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux with no source code changes! The book teaches solid Qt programming practices; it is not a rehash of the documentation.

  • Build powerful C++ GUI applications quickly and easily
  • Design dialogs and main windows visually and in code
  • Learn Qt's innovative typesafe signals and slots mechanism
  • Use layouts to create forms that automatically size and scale
  • Create custom signals, slots, events, and controls
  • Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4
  • Code applications with menus, toolbars, dialogs, and drag and drop
  • Utilize 2D and 3D graphics, multithreading, and networking
  • Write database and XML applications
  • Internationalize to reach foreign markets
  • Exploit platform-specific-features like ActiveX

Already using Qt or just starting out? Evaluating Qt or managing it? Building open source applications--or commercial applications? Want to develop for Windows without buying an expensive compiler? Whatever your goal, this is the only book you need!

Customer Reviews

33 of 36 people found the following review helpful
3.0 out of 5 stars good, but could be much better, May 15, 2004
By A Customer
This review is from: C++ GUI Programming with Qt 3 (Paperback)
I found myself pretty disappointed with this book contents. From book reviews I read, I expected clean, concise and self-contained explanation of Qt features. The book is indeed covering most of Qt features, but presentation style is - well, confusing. Namely, for the most parts, book chapters are explanations of rather large code fragments, that often have nothing to do with Qt. Reader is thus forced to take non-insignificant effort to understand these parts of code (that are in turn often incomplete, so it is necessary to look-up full source code from CD all the time), so understanding of Qt-specific topics has necessary to be blurred with this. For example, immediately after showing hello-world like program in first chapter, authors are jumping into development of full-blown Excell-like application in next three chapters. While it is indeed still toy application, it is not particularly funny to follow more than 1000 lines of code in this place (much more appropriate would be... Read more
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


19 of 20 people found the following review helpful
5.0 out of 5 stars Solid introductory work to Qt, January 30, 2004
By 
This review is from: C++ GUI Programming with Qt 3 (Paperback)
The book nicely introduces and covers a wide variety of Qt topics with real world examples. The first six chapters provide a very solid grounding in Qt. The standout chapters are the first chapter which provides an easy introductory ramp, the third chapter which covers modeless application development by using a spreadsheet as an example, and the sixth chapter which covers layout management. All of the chapters are worthwhile but those stand out as justifying the purchase price of the book. The writing style is clean and fairly terse so the reasonably advanced reader should get it on the first go, while the beginner may need a pass or two.

The shortcomings are minor. There is no reference portion to the book and while I understand that a full reference would add a significant bulk to the book a class reference with brief descriptions for each method would be appreciated. There is one large reference graphic that shows the class structure of the library. Syntax highlighting,... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


19 of 21 people found the following review helpful
5.0 out of 5 stars A definitive tutorial and reference for Qt 3, January 27, 2004
By 
This review is from: C++ GUI Programming with Qt 3 (Paperback)
First of all, I must say that I pestered Mark hard to write this book. When Mark told me that Trolltech had sanctioned the work and asked me to be one of the external reviewers, I agreed immediately.

This book is an ideal way to ease yourself into the joy of Qt programming. You know you've decided to use Qt because of all the good things you've heard about it around the net, and the buzz it creates. Or perhaps you're writing free software on Linux. Or, perhaps you're like me, and use Qt as a competetive advantage in your day job, not feeling one bit sorry for the MFC programmers of this world. Whatever your motive for using Qt, this is a darn good book to own.

When you start in a new environment, you need a helping hand because you can feel lost. This book guides you by starting with the basics, that of getting a simple Qt program working, and proceeds to expand its use of the Qt framework as you become familiar with your surroundings.

The work takes simple applications... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Share your thoughts with other customers:
 See all 12 customer reviews...

Online Sample Chapter

Creating Main Windows with Qt3

Table of Contents



Foreword.


Preface.


Acknowledgments.


A Brief History of Qt.

I. BASIC QT.

1. Getting Started.

Hello Qt.

Making Connections.

Using the Reference Documentation.

2. Creating Dialogs.

Subclassing QDialog.

Signals and Slots in Depth.

Rapid Dialog Design.

Shape-Changing Dialogs.

Dynamic Dialogs.

Built-inWidget and Dialog Classes.

3. Creating Main Windows.

Subclassing QMainWindow.

Creating Menus and Toolbars.

Implementing the File Menu.

Setting Up the Status Bar.

Using Dialogs.

Settings.

Multiple Documents.

Splash Screens.

4. Implementing Application Functionality.

The CentralWidget.

Subclassing QTable.

Loading and Saving.

Implementing the Edit Menu.

Implementing the Other Menus.

Subclassing QTableItem.

5. Creating Custom Widgets.

Customizing Qt Widgets.

Subclassing QWidget.

Integrating CustomWidgets with Qt Designer.

Double Buffering.

II. INTERMEDIATE QT.

6. Layout Management.

Basic Layouts.

Splitters.

Widget Stacks.

Scroll Views.

Dock Windows.

Multiple Document Interface.

7. Event Processing.

Reimplementing Event Handlers.

Installing Event Filters.

Staying Responsive During Intensive Processing.

8. 2D and 3D Graphics.

Painting with QPainter.

Graphics with QCanvas.

Printing.

Graphics with OpenGL.

9. Drag and Drop.

Enabling Drag and Drop.

Supporting Custom Drag Types.

Advanced Clipboard Handling.

10. Input/Output.

Reading and Writing Binary Data.

Reading and Writing Text.

Handling Files and Directories.

Inter-Process Communication.

11. Container Classes.

Vectors.

Lists.

Maps.

Pointer-Based Containers.

QString and QVariant.

12. Databases.

Connecting and Querying.

Presenting Data in Tabular Form.

Creating Data-Aware Forms.

13. Networking.

Using QFtp.

Using QHttp.

TCP Networking with QSocket.

UDP Networking with QSocketDevice.

14. XML.

Reading XML with SAX.

Reading XML with DOM.

Writing XML.

15. Internationalization.

Working with Unicode.

Making Applications Translation-Aware.

Dynamic Language Switching.

Translating Applications.

16. Providing Online Help.

Tooltips, Status Tips, and "What's This?" Help.

Using QTextBrowser as a Simple Help Engine.

Using Qt Assistant for Powerful Online Help.

17. Multithreading.

Working with Threads.

Communicating with the GUI Thread.

Using Qt's Classes in Non-GUI Threads.

18. Platform-Specific Features.

Interfacing with Native APIs.

Using ActiveX.

Session Management.

Appendices.

A: Installing Qt.

A Note on Licensing.

Installing Qt/Windows.

Installing Qt/Mac.

Installing Qt/X11.

B: Qt's Class Hierarchy.

Index.

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

 
Purchase Reward: One Month Free Subscription
By completing any purchase on InformIT, you become eligible for an unlimited access one-month subscription to Safari Books Online.

Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.