Home > Store > Open Source

larger cover

Add To My Wish List

Advanced Qt Programming: Creating Great Software with C++ and Qt 4

  • By Mark Summerfield
  • Published Jul 11, 2010 by Prentice Hall.
    • Copyright 2011
    • Dimensions: 7 X 9-1/8
    • Pages: 560
    • Edition: 1st
    • Book
    • ISBN-10: 0-321-63590-6
    • ISBN-13: 978-0-321-63590-7

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

  • Description
  • Reviews
  • Sample Content

Product Author Bios

Mark Summerfield is an independent trainer, consultant, technical editor, and writer specializing in Qt, PyQt, Python, and C++. Prior to launching his firm, Qtrac Ltd., he spent many years working as a programmer, software consultant, technical writer, and editor. His books include Rapid GUI Programming with Python and Qt; C++ GUI Programming with Qt 4, Second Edition (with Jasmin Blanchette); and Programming in Python 3. Summerfield created Sandbox, an open source GUI application for experimenting with Python. He graduated with first class honors in Computer Science from the University of Wales Swansea, UK

Master Qt’s Most Powerful APIs, Patterns, and Development Practices

 

Qt has evolved into a remarkably powerful solution for cross-platform desktop, Web, and mobile development. However, even the most experienced Qt programmers only use a fraction of its capabilities. Moreover, practical information about Qt’s newest features has been scarce—until now.

 

Advanced Qt Programming shows developers exactly how to take full advantage of Qt 4.5’s and Qt 4.6’s most valuable new APIs, application patterns, and development practices. Authored by Qt expert Mark Summerfield, this book concentrates on techniques that offer the most power and flexibility with the least added complexity.

 

Summerfield focuses especially on model/view and graphics/view programming, hybrid desktop/Web applications, threading, and applications incorporating media and rich text. Throughout, he presents realistic, downloadable code examples, all tested on Windows, Mac OS X, and Linux using Qt 4.6 (and most tested on Qt 4.5) and designed to anticipate future versions of Qt. The book

 

  • Walks through using Qt with WebKit to create innovative hybrid desktop/Internet applications
  • Shows how to use the Phonon framework to build powerful multimedia applications
  • Presents state-of-the-art techniques for using model/view table and tree models, QStandardItemModels, delegates, and views, and for creating custom table and tree models, delegates, and views
  • Explains how to write more effective threaded programs with the QtConcurrent module and with the QThread class
  • Includes detailed coverage of creating rich text editors and documents
  • Thoroughly covers graphics/view programming: architecture, windows, widgets, layouts, scenes, and more
  • Introduces Qt 4.6’s powerful animation and state machine frameworks

Customer Reviews

9 of 10 people found the following review helpful
5.0 out of 5 stars very good book,the only qt book, December 17, 2010
By 
Dj Guimard (LONDON UK) - See all my reviews
(REAL NAME)   
Amazon Verified Purchase(What's this?)
This review is from: Advanced Qt Programming: Creating Great Software with C++ and Qt 4 (Prentice Hall Open Source Software Development Series) (Hardcover)
This book focus on what is essential and important using QT.
For example the model view architecture using desktop widget but also graphical widget,state machine animation framework are very well explain and precise.
The code provided simply work.
I think reader of this book can really save some time during the learning process.It s also a book that you can read close to your qt creator open to experiment each notion explained by Mark.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


3 of 3 people found the following review helpful
5.0 out of 5 stars Exactly what the title says, July 25, 2012
By 
Ross Canning (Canberra, Australia) - See all my reviews
(REAL NAME)   
Amazon Verified Purchase(What's this?)
This review is from: Advanced Qt Programming: Creating Great Software with C++ and Qt 4 (Prentice Hall Open Source Software Development Series) (Hardcover)
An excellent overview of some of the advanced features of QT, such as displaying web pages, playing multimedia, and multi-threaded programming. I've been using QT professionally for a couple of years now, but I still learnt a great deal from this book.

The writing style is friendly and informal, and all the explanatory text is easy to understand.

All of the example programs worked perfectly, with one minor exception: the 'weather tray icon' app did not display properly -- perhaps because I was running Ubuntu 12.04, whereas the app had been tested on Fedora. (I could not, in good conscience, deduct a star from this book's rating because of that: making apps that work on every variant of Linux is an impossible task :) ).
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


14 of 19 people found the following review helpful
5.0 out of 5 stars this book is a "must have" for a Qt developper, August 16, 2010
This review is from: Advanced Qt Programming: Creating Great Software with C++ and Qt 4 (Prentice Hall Open Source Software Development Series) (Hardcover)
After reading his previous book ("C++ GUI Programming With Qt 4") I order this Mark Summerfield new opus as soon as it has been published and I really enjoy reading it. It learn me some tips and tricks during all chapters. It explain clearly some points which are difficult to master with true life samples. Here comes (Model / View, Phonon, Webkit...)

Mark have answered some questions I ask him by mail on his book. That's really nice from him to be available to his readers ! You're great Mark...

So if you want to discover or go deeper in Qt, go reading this book now !

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


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

Online Sample Chapter

Advanced Qt Programming: Model/View Views

Table of Contents

List of Tables xiii

Foreword xv

 

Introduction 1

 

Chapter 1: Hybrid Desktop/Internet Applications 5

Internet-Aware Widgets 6

Using WebKit 21

 

Chapter 2: Audio and Video 53

Using QSound and QMovie 54

The Phonon Multimedia Framework 60

 

Chapter 3: Model/View Table Models 87

Qt’s Model/View Architecture 88

Using QStandardItemModels for Tables 90

Creating Custom Table Models 113

 

Chapter 4: Model/View Tree Models 129

Using QStandardItemModels for Trees 130

Creating Custom Tree Models 151

 

Chapter 5: Model/View Delegates 185

Datatype-Specific Editors 186

Datatype-Specific Delegates 188

Model-Specific Delegates 201

 

Chapter 6: Model/View Views 207

QAbstractItemView Subclasses 208

Model-Specific Visualizing Views 224

 

Chapter 7: Threading with QtConcurrent 245

Executing Functions in Threads 248

Filtering and Mapping in Threads 261

 

Chapter 8: Threading with QThread 287

Processing Independent Items 287

Processing Shared Items 302

 

Chapter 9: Creating Rich Text Editors 317

Introducing QTextDocument 318

Creating Custom Text Editors 320

A Rich Text Single Line Editor 342

Multi-line Rich Text Editing 353

 

Chapter 10: Creating Rich Text Documents 359

Exported QTextDocument File Quality 361

Creating QTextDocuments 364

Exporting and Printing Documents 371

Painting Pages 379

 

Chapter 11: Creating Graphics/View Windows 389

The Graphics/View Architecture 390

Graphics/View Widgets and Layouts 392

Introducing Graphics Items 399

 

Chapter 12: Creating Graphics/View Scenes 409

Scenes, Items, and Actions 411

Enhancing QGraphicsView 439

Creating a Dock Widget Toolbox 440

Creating Custom Graphics Items 447

 

Chapter 13: The Animation and State Machine Frameworks 469

Introducing the Animation Framework 469

Introducing the State Machine Framework 474

Combining Animations and State Machines 481

 

Epilogue 491

 

Selected Bibliography 495

 

Index 499

Sample Pages

Download the sample pages (includes Chapter 6 and Index)

 
Best Value

Book + eBook Bundle  $98.98  $59.39

Book Price $43.99
eBook Price $15.40
eBook formats included

Buy

This book includes free shipping!

Buy

Book  $54.99  $43.99

Usually ships in 24 hours.

This book includes free shipping!

Buy

eBook (Watermarked)  $43.99  $35.19

Includes EPUB, MOBI, and PDF
About eBook Formats

This eBook includes the following formats, accessible from your Account page after purchase:

ePubEPUBThe open industry format known for its reflowable content and usability on supported mobile devices.

MOBIMOBIThe eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

Adobe ReaderPDFThe popular standard, used most often with the free Adobe® Reader® software.

This eBook requires no passwords or activation to read. We customize your eBook by discretely watermarking it with your name, making it uniquely yours.

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.