Contents
List of Tables
Foreword
Introduction
Acknowledgements
Chapter 1. Hybrid Desktop/Internet Applications
Internet-Aware Widgets
Using WebKit
A Generic Web Browser Window Component
Creating Web Site-Specific Applications
Embedding Qt Widgets in Web Pages
Chapter 2. Audio and Video
Using QSound and QMovie
The Phonon Multimedia Framework
Playing Music
Playing Videos
Chapter 3. Model/View Table Models
Qt’s Model/View Architecture
Using QStandardItemModels for Tables
Changing a Table Model through the User Interface
A QStandardItemModel Subclass for Tables
A QSortFilterProxyModel to Filter Out Duplicate Rows
A QSortFilterProxyModel to Filter In Wanted Rows
Creating Custom Table Models
Changing a Table Model through the User Interface
A CustomQAbstractTableModel Subclass for Tables
Chapter 4. Model/View Tree Models
Using QStandardItemModels for Trees
Changing a Tree Model through the User Interface
A QStandardItem Subclass for Tree Items
A QStandardItemModel Subclass for Trees
Creating Custom Tree Models
Changing a Tree Model through the User Interface
A Custom Item Class for Tree Items
A CustomQAbstractItemModel Subclass for Trees
Chapter 5. Model/View Delegates
Datatype-Specific Editors
Datatype-Specific Delegates
A Read–Only Column or Row Delegate
An Editable Column or Row Delegate
Model-Specific Delegates
Chapter 6. Model/View Views
QAbstractItemView Subclasses
Model-Specific Visualizing Views
The Visualizer Widget
The Visualizer’s Aggregated Header Widget
The Visualizer’s Aggregated View Widget
Chapter 7. Threading with QtConcurrent
Executing Functions in Threads
Using QtConcurrent::run()
Using QRunnable
Filtering and Mapping in Threads
Using QtConcurrent to Filter
Using QtConcurrent to Filter and Reduce
Using QtConcurrent to Map
Chapter 8. Threading with QThread
Processing Independent Items
Processing Shared Items
Chapter 9. Creating Rich Text Editors
Introducing QTextDocument
Creating CustomText Editors
Completion for Line Edits and Comboboxes
Completion and Syntax Highlighting for Text Editors
A Rich Text Single Line Editor
Multi-line Rich Text Editing
Chapter 10. Creating Rich Text Documents
Exported QTextDocument File Quality
Creating QTextDocuments
Creating QTextDocuments with HTML
Creating QTextDocuments with QTextCursor
Exporting and Printing Documents
Exporting QTextDocuments
Printing and Previewing QTextDocuments
Painting Pages
Painting PDF or PostScript
Painting SVG
Painting Pixmaps
Chapter 11. Creating Graphics/View Windows
The Graphics/View Architecture
Graphics/View Widgets and Layouts
Introducing Graphics Items
Chapter 12. Creating Graphics/View Scenes
Scenes, Items, and Actions
Creating the Main Window
Saving, Loading, Printing, and Exporting Scenes
Manipulating Graphics Items
Enhancing QGraphicsView
Creating a Dock Widget Toolbox
Creating Custom Graphics Items
Enhancing QGraphicsTextItem
Enhancing an Existing Graphics Item
Creating a Custom Graphics Item from Scratch
Chapter 13. The Animation and State Machine Frameworks
Introducing the Animation Framework
Introducing the State Machine Framework
Combining Animations and State Machines
Epilogue
Selected Bibliography
Index
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z