Advanced Qt Programming: Creating Great Software with C++ and Qt 4 [NOOK Book]

Overview

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...

See more details below
Advanced Qt Programming: Creating Great Software with C++ and Qt 4

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study

Want a NOOK? Explore Now

NOOK Book (eBook)
$25.49
BN.com price
(Save 42%)$43.99 List Price

Overview

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
Read More Show Less

Editorial Reviews

From the Publisher
“A good book on advanced Qt programming has been missing in the arsenal of Qt programmers. I’m very happy that Mark has written one. He is a fantastic technical writer with all the necessary background to write authoritatively about Qt programming. ... In other words: You are in for a treat! You are holding in your hands an excellent opportunity to expand on your knowledge of all the cool stuff you can do with Qt.”

—Eirik Chambe-Eng, cocreator of Qt

Read More Show Less

Product Details

  • ISBN-13: 9780132480161
  • Publisher: Pearson Education
  • Publication date: 7/25/2010
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 560
  • File size: 28 MB
  • Note: This product may take a few minutes to download.

Meet the Author

Mark Summerfield owns Qtrac Ltd., where he works as an independent consultant, programmer, author, editor, and trainer specializing in C++, Qt, Python, and PyQt. During nearly three years as documentation manager for Trolltech (now Nokia’s Qt Development Frameworks), he founded and edited the Qt Quarterly technical journal. His books include Rapid GUI Programming with Python and Qt (Prentice Hall, 2008) and Programming in Python 3, Second Edition (Addison-Wesley, 2010). With Jasmin Blanchette, he coauthored C++ GUI Programming with Qt 4, Second Edition (Prentice Hall, 2008).

Read More Show Less

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

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 4 Customer Reviews
  • Anonymous

    Posted May 6, 2011

    No text was provided for this review.

  • Anonymous

    Posted August 22, 2010

    No text was provided for this review.

  • Anonymous

    Posted February 15, 2011

    No text was provided for this review.

  • Anonymous

    Posted August 27, 2011

    No text was provided for this review.

Sort by: Showing all of 4 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)