Rapid GUI Programming with Python and Qt: The Definitive Guide to PyQt Programming

Front Cover
Pearson Education, Oct 18, 2007 - Computers - 648 pages

Whether you're building GUI prototypes or full-fledged cross-platform GUI applications with native look-and-feel, PyQt 4 is your fastest, easiest, most powerful solution. Qt expert Mark Summerfield has written the definitive best-practice guide to PyQt 4 development.

With Rapid GUI Programming with Python and Qt you'll learn how to build efficient GUI applications that run on all major operating systems, including Windows, Mac OS X, Linux, and many versions of Unix, using the same source code for all of them. Summerfield systematically introduces every core GUI development technique: from dialogs and windows to data handling; from events to printing; and more. Through the book's realistic examples you'll discover a completely new PyQt 4-based programming approach, as well as coverage of many new topics, from PyQt 4's rich text engine to advanced model/view and graphics/view programming. Every key concept is illuminated with realistic, downloadable examples–all tested on Windows, Mac OS X, and Linux with Python 2.5, Qt 4.2, and PyQt 4.2, and on Windows and Linux with Qt 4.3 and PyQt 4.3.

 

Contents

Writing and Reading Using QDataStream
Writing and Reading Using QTextStream
Writing XML
Exercise
Extension Dialogs
A Fraction Slider
A FlowMixing Widget
ItemBased Graphics

Using Keyword Arguments
Classes and Modules
Static Data and Static Methods and Decorators
Collection Classes
Using the doctest Module
Introduction to GUI Programming
Exercise
Dialogs
Modeless ApplyCloseStyle Dialogs
Actions and Key Sequences
Restoring and Saving the Main Windows State
Handling User Actions
Handling Edit Actions
Custom Widgets
Using Qt Designer
Main Windows
Using QSyntaxHighlighter
A Rich Text Line Edit
Printing Images
Printing Documents Using QPainter
ModelView Programming
Implementing the View Logic
Data Handling and Custom File Formats
Exercise
Advanced ModelView Programming
Online Help and Internationalization
Networking
Multithreading
Appendix A Installing
Appendix B Selected PyQt Widgets
Selected PyQt Class Hierarchies
Copyright

Other editions - View all

Common terms and phrases

About the author (2007)

Mark Summerfield works as an independent trainer and consultant specializing in C++, Qt, Python, and PyQt. He was Trolltech’s documentation manager from 2000 to 2004, was the founding editor of Qt Quarterly, Trolltech’s customer newsletter, and coauthored C++ GUI Programming with Qt 3 and C++ GUI Programming with Qt 4.

Bibliographic information