Fishpond Gift Vouchers - Let them choose!

Shop over a million Toys in our Huge New Range

C++ GUI Programming with Qt 4
By

Rating
Hurry - Only 4 left in stock!

Product Description
Product Details

Table of Contents

Series Editor's Note xiForeword xiiiPreface xvAcknowledgments xviiA Brief History of Qt xixPart I: Basic Qt 1. Getting Started 3

Hello Qt 3Making Connections 5Laying Out Widgets 6Using the Reference Documentation 10

2. Creating Dialogs 13

Subclassing QDialog 13Signals and Slots in Depth 20Rapid Dialog Design 23Shape-Changing Dialogs 31Dynamic Dialogs 38Built-in Widget and Dialog Classes 39

3. Creating Main Windows 45

Subclassing QMain Window 46Creating Menus and Toolbars 50Setting Up the Status Bar 55Implementing the File Menu 57Using Dialogs 63Storing Settings 69Multiple Documents 71Splash Screens 74

4. Implementing Application Functionality 77

The Central Widget 77Subclassing QTableWidget 78Loading and Saving 84Implementing the Edit Menu 87Implementing the Other Menus 91Subclassing QTableWidget Item 95

5. Creating Custom Widgets 105

Customizing QtWidgets 105Subclassing QWidget 107Integrating Custom Widgets with QtDesigner 117Double Buffering 121

Part II: Intermediate Qt 6. Layout Management 141

Laying Out Widgets on a Form 141Stacked Layouts 147Splitters 149Scrolling Areas 152Dock Windows and Toolbars 154Multiple Document Interface 157

7. Event Processing 167

Reimplementing Event Handlers 167 Installing Event Filters 172 Staying Responsive during Intensive Processing 175

8. 2D Graphics 179

Painting with QPainter 180Coordinate System Transformations 185High-Quality Rendering with QImage 193Item-Based Rendering with Graphics View 195Printing 217

9. Drag and Drop 227

Enabling Drag and Drop 227Supporting Custom Drag Types 232Clipboard Handling 237

10. Item View Classes 239

Using the Item View Convenience Classes 240Using Predefined Models 247Implementing Custom Models 252Implementing Custom Delegates 266

11. Container Classes 273

Sequential Containers 274Associative Containers 282Generic Algorithms 285Strings, Byte Arrays, and Variants 287

12. Input/Output 295

Reading and Writing Binary Data 296Reading and Writing Text 301Traversing Directories 307Embedding Resources 308Inter-Process Communication 309

13. Databases 315

Connecting and Querying 316Viewing Tables 322Editing Records Using Forms 324Presenting Data in Tabular Forms 330

14. Multithreading 339

Creating Threads 340Synchronizing Threads 343Communicating with the Main Thread 349Using Qt's Classes in Secondary Threads 356

15. Networking 359

Writing FTP Clients 359Writing HTTP Clients 368Writing TCP Client-Server Applications 371Sending and Receiving UDP Datagrams 381

16. XML 387

Reading XML with QXmlStream Reader 388Reading XML with DOM 395Reading XML with SAX 400Writing XML 404

17. Providing Online Help 407

Tooltips, Status Tips, and "What's This?" Help 407Using a Web Browser to Provide Online Help 409Using QText Browser as a Simple Help Engine 411Using QtAssistant for Powerful Online Help 414

Part III: Advanced Qt 18. Internationalization 419

Working with Unicode 420Making Applications Translation-Aware 423Dynamic Language Switching 429Translating Applications 435

19. Look and Feel Customization 439

Using Qt Style Sheets 439Subclassing QStyle 454

20. 3D Graphics 471

Drawing Using OpenGL 471Combining OpenGL and QPainter 477Doing Overlays Using Framebuffer Objects 484

21. Creating Plugins 491

Extending Qt with Plugins 492Making Applications Plugin-Aware 502Writing Application Plugins 505

22. Application Scripting 509

Overview of the ECMA Script Language 510Extending Qt Applications with Scripts 519Implementing GUI Extensions Using Scripts 523Automating Tasks through Scripting 530

23. Platform-Specific Features 543

Interfacing with Native APIs 543Using ActiveX on Windows 547Handling X11 Session Management 559

24. Embedded Programming 567

Getting Started with Qt/Embedded Linux 568Customizing Qt/Embedded Linux 570Integrating Qt Applications with Qtopia 571Using Qtopia APIs 576

Appendixes A. Obtaining and Installing Qt 589B. Building Qt Applications 593C. Introduction to Qt Jambi 605D. Introduction to C++ for Java and C# Programmers 623Index 665

Promotional Information

The Only Official, Best-Practice Guide to Qt 4.3 Programming

Using Trolltech's Qt you can build industrial-strength C++ applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux without source code changes. Now, two Trolltech insiders have written a start-to-finish guide to getting outstanding results with the latest version of Qt: Qt 4.3.Packed with realistic examples and in-depth advice, this is the book Trolltech uses to teach Qt to its own new hires. Extensively revised and expanded, it reveals today's best Qt programming patterns for everything from implementing model/view architecture to using Qt 4.3's improved graphics support. You'll find proven solutions for virtually every GUI development task, as well as sophisticated techniques for providing database access, integrating XML, using subclassing, composition, and more. Whether you're new to Qt or upgrading from an older version, this book can help you accomplish everything that Qt 4.3 makes possible.

  • Completely updated throughout, with significant new coverage of databases, XML, and Qtopia embedded programming
  • Covers all Qt 4.2/4.3 changes, including Windows Vista support, native CSS support for widget styling, and SVG file generation
  • Contains separate 2D and 3D chapters, coverage of Qt 4.3's new graphics view classes, and an introduction to QPainter's OpenGL back-end
  • Includes new chapters on look-and-feel customization and application scripting
  • Illustrates Qt 4's model/view architecture, plugin support, layout management, event processing, container classes, and much more
  • Presents advanced techniques covered in no other book-from creating plugins to interfacing with native APIs
  • Includes a new appendix on Qt Jambi, the new Java version of Qt

About the Author

Jasmin Blanchette is a Trolltech senior software engineer and is writing his M.Sc. thesis in computer science at the University of Oslo.

Mark Summerfield works as an independent trainer and consultant specializing in C++, Qt, Python, and PyQt, and is the author of Rapid GUI Programming with Python and Qt. Blanchette and Summerfield coauthored C++ GUI Programming with Qt 3 and the first edition of C++ GUI Programming with Qt 4.

Ask a Question About this Product More...
Write your question below:
Look for similar items by category
Home » Books » Computers » Programming » C++
How Fishpond Works
Fishpond works with suppliers all over the world to bring you a huge selection of products, really great prices, and delivery included on over 25 million products that we sell. We do our best every day to make Fishpond an awesome place for customers to shop and get what they want — all at the best prices online.
Webmasters, Bloggers & Website Owners
You can earn a 5% commission by selling C++ GUI Programming with Qt 4 on your website. It's easy to get started - we will give you example code. After you're set-up, your website can earn you money while you work, play or even sleep! You should start right now!
Authors / Publishers
Are you the Author or Publisher of a book? Or the manufacturer of one of the millions of products that we sell. You can improve sales and grow your revenue by submitting additional information on this title. The better the information we have about a product, the more we will sell!
Item ships from and is sold by Fishpond World Ltd.
Back to top