
An Introduction to Design
Patterns in C++ with Qt 4
ezus_138004_fm.qxd 8/3/06 4:25 PM Page i

Perens_Series_7x9_25.qxd 5/22/06 1:15 PM Page 1

Upper Saddle River, NJ • Boston • Indianapolis • San Francisco
New York • Toronto • Montreal • London • Munich • Paris • Madrid
Capetown • Sydney • Tokyo • Singapore • Mexico City
An Introduction to
Design Patterns
in C++ with Qt 4
Alan Ezust
Paul Ezust
ezus_138004_fm.qxd 8/3/06 4:25 PM Page iii

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trade-
marks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the des-
ignations have been printed with initial capital letters or in all capitals.
The authors and publisher have taken care in the preparation of this book, but make no expressed or implied war-
ranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or
consequential damages in connection with or arising out of the use of the information or programs contained
herein.
The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales,
which may include electronic versions and/or custom covers and content particular to your business, training goals,
marketing focus, and branding interests. For more information, please contact:
U.S. Corporate and Government Sales
(800) 382-3419
corpsales@pearsontechgroup.com
For sales outside the United States, please contact:
International Sales
international@pearsoned.com
This Book Is Safari Enabled
The Safari® Enabled icon on the cover of your favorite technology book means the book is
available through Safari Bookshelf. When you buy this book, you get free access to the online
edition for 45 days.
Safari Bookshelf is an electronic reference library that lets you easily search thousands of technical books, find code
samples, download chapters, and access technical information whenever and wherever you need it.
To gain 45-day Safari Enabled access to this book:
• Go to http://www.prenhallprofessional.com/safarienabled
• Complete the brief registration form
• Enter the coupon code 1AMQ-56YL-KJ1A-LXLU-GGLT
If you have difficulty registering on Safari Bookshelf or accessing the online edition, please e-mail
customer-service@safaribooksonline.com.
Visit us on the Web: www.prenhallprofessional.com
Library of Congress Cataloging-in-Publication Data
Ezust, Alan.
An introduction to design patterns in C++ with Qt 4 / Alan Ezust, Paul Ezust.
p. cm.
Includes bibliographical references and index.
ISBN 0-13-187905-7 (pbk. : alk. paper)
1. C++ (Computer program language) 2. Software patterns. 3. Computer software—Reusability.
I. Ezust, Paul. II. Title.
QA76.73.C153E94 2006
005.133—dc22
2006011947
Copyright © 2007 Pearson Education, Inc.
This material may only be distributed subject to the terms and conditions set forth in the Open Publication License,
v1.0 or later. (The latest version is presently available at http://www.opencontent.org/openpub/.)
For information regarding permissions, write to:
Pearson Education, Inc.
Rights and Contracts Department
One Lake Street
Upper Saddle River, NJ 07458
Fax: (201) 236-3290
ISBN 0-13-187905-7
Text printed in the United States on recycled paper at Courier in Stoughton, Massachusetts.
First printing, August 2006
ezus_138004_fm.qxd 8/3/06 4:25 PM Page iv

This book is dedicated to Miriam Ezust,
without whom none of our work
would have been possible.
ezus_138004_fm.qxd 8/3/06 4:25 PM Page v