2020ok  Directory of FREE Online Books and FREE eBooks

Free eBooks > Computers & Internet > Web Development > HTML, Graphics, & Design > Web Graphics > C++ GUI Programming with Qt 3

C++ GUI Programming with Qt 3

by Jasmin Blanchette and Mark Summerfield

Download Book
(Respecting the intellectual property of others is utmost important to us, we make every effort to make sure we only link to legitimate sites, such as those sites owned by authors and publishers. If you have any questions about these links, please contact us.)

link 1
link 2
link 3
link 4
link 5

About Book

Book Description
Qt 4 is radically different from earlier versions of Qt, with lots of new features and many small changes everywhere in the API. For customers porting applications from Qt 3 to Qt 4, this is bad news; but for us, this is good news, because it means that owners of the Qt 3 book will want to buy this one as well. Those who buy this book will: [1] Learn how to program Qt the right way, i.e. with the grain of the tool. [2] Learn standard patterns of Qt programming, from basic tasks like creating a file menu with a recently used files list to more complex tasks such as presenting data to the user through the user interface, and providing the user with the ability to interact with their data. [3] Learn how to extend Qt to meet their needs, for example, through subclassing and by composition. [4] Gain insight into programming in general and into graphical user interface programming in particular.

From the Back Cover

The Only Official Best-Practice Guide to Qt 4.1 Programming

Using Trolltech's Qt you can build industrial-strength C++ applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux--without making source code changes. With this book Trolltech insiders have written a start-to-finish guide to getting great results with the most powerful version of Qt ever created: Qt 4.1.

Using C++ GUI Programming with Qt 4 you'll discover the most effective Qt 4 programming patterns and techniques as you master key technologies ranging from Qt's model/view architecture to Qt's powerful new 2D paint engine. The authors provide readers with unparalleled insight into Qt's event model and layout system. Then, using realistic examples, they introduce superior techniques for everything from basic GUI development to advanced database and XML integration.

  • Includes new chapters on Qt 4's model/view architecture and Qt's new plugin support, along with a brief introduction to Qtopia embedded programming
  • Covers all Qt fundamentals, from dialogs and windows to implementing application functionality
  • Introduces best practices for layout management and event processing
  • Shows how to make the most of Qt 4's new APIs, including the powerful new 2D paint engine and the new easy-to-use container classes
  • Contains completely updated material in every chapter
  • Presents advanced Qt 4 techniques covered in no other book, from creating both Qt and application plugins to interfacing with native APIs
  • Contains an in-depth appendix on C++/Qt programming for experienced Java developers

The accompanying CD-ROM includes the open source edition of Qt 4.1.1 for Windows, Mac, Linux, and many Unixes, as well as MinGW, a set of freely available development tools that can be used to build Qt applications on Windows, and also the source code for the book's examples.

About the Author

Jasmin Blanchette, Trolltech's documentation manager and a senior developer, has worked at Trolltech since 2001. He is editor of Qt Quarterly, Trolltech's technical newsletter, and coauthored C++ GUI Programming with Qt 3.

Mark Summerfield works as an independent trainer and consultant specializing in C++, Qt, and Python. He was Trolltech's documentation manager for almost three years and coauthored C++ GUI Programming with Qt 3.

Excerpt. © Reprinted by permission. All rights reserved.

Qt is a comprehensive C++framework for developing cross-platform GUI applications using a "write once, compile anywhere" approach. Qt lets programmers use a single source tree for applications that will run on Windows 98 to XP, Mac OS X, Linux, Solaris, HP-UX, and many other versions of Unix with X11. The Qt libraries and tools are also part of Qtopia Core, a product that provides its own window system on top of embedded Linux.

The purpose of this book is to teach you how to write GUI programs using Qt 4. The book starts with "Hello Qt" and quickly progresses to more advanced topics, such as creating custom widgets and providing drag and drop. The text is complemented by a CD that contains the source code of the example programs. The CD also includes the open source edition of Qt 4.1.1 for all supported platforms, as well as MinGW, a set of freely available development tools that can be used to build Qt applications on Windows. Appendix A explains how to install the software.

The book is divided into three parts. Part I covers all the concepts and practices necessary for programming GUI applications using Qt. Knowledge of this part alone is sufficient to write useful GUI applications. Part II covers central Qt topics in greater depth, and Part III provides more specialized and advanced material. The chapters of Parts II and III can be read in any order, but they assume familiarity with the contents of Part I.

Readers of the Qt 3 edition of this book will find this new edition familiar in both content and style. This edition has been updated to take advantage of Qt 4's new features (including some that were introduced with Qt 4.1) and to present code that shows good idiomatic Qt 4 programming techniques. In many cases, we have used examples similar to the ones used in the Qt 3 edition. This will not affect new readers, but will help those who read the previous edition orient themselves to Qt 4's cleaner, clearer, and more expressive style.

This edition includes new chapters covering Qt 4's model/view architecture, the new plugin framework, and embedded programming with Qtopia, as well a new appendix. And just like the Qt 3 book, the emphasis is on explaining Qt programming rather than simply rehashing or summarizing Qt's extensive online documentation.

We have written the book with the assumption that you have a basic knowl*edge of C++, Java, or C#. The code examples use a subset of C++, avoiding many C++ features that are rarely needed when programming Qt. In the few places where a more advanced C++ construct is unavoidable, it is explained where it is used.

If you already know Java or C# but have little or no experience with C++, we recommend that you begin by reading Appendix B, which provides sufficient introduction to C++ to be able to use this book. For a more thorough introduction to object-oriented programming in C++, we recommend C++ How to Program by Harvey Deitel and Paul Deitel, and the C++ Primer by Stanley B. Lippman, Josee Lajoie, and Barbara E. Moo.

Qt made its reputation as a cross-platform framework, but because of its intuitive and powerful API, many organizations use Qt for single-platform development. Adobe Photoshop Album is just one example of a mass-market Windows application written in Qt. Many sophisticated software systems in vertical markets, such as 3D animation tools, digital film processing, electronic design automation (for chip design), oil and gas exploration, financial services, and medical imaging, are built with Qt. If you are making a living with a successful Windows product written in Qt, you can easily create new markets in the Mac OS X and Linux worlds simply by recompiling.

Qt is available under various licenses. If you want to build commercial applications, you must buy a commercial Qt license; if you want to build open source programs, you can use the open source (GPL) edition. Qt is the foundation on which the K Desktop Environment (KDE) and the many open source applications that go with it are built.

In addition to Qt's hundreds of classes, there are add-ons that extend Qt's scope and power. Some of these products, like Qt Script for Applications (QSA) and the Qt Solutions components, are available from Trolltech, while others are supplied by other companies and by the open source community. See http://www.trolltech.com/products/3rdparty/ for information on Qt add-ons. Qt also has a well-established and thriving user community that uses the qt-interest mailing list; see http://lists.trolltech.com/ for details.



PLEASE READ: All comments must be approved before appearing in the thread; time and space constraints prevent all comments from appearing. We will only approve comments that are directly related to the article, use appropriate language and are not attacking the comments of others.

Message (please, no HTML tags. Web addresses will be hyperlinked):

Related Free eBooks

Related Tags

DIGG This story   Save To Google   Save To Windows Live   Save To Del.icio.us   diigo it   Save To blinklist
Save To Furl   Save To Yahoo! My Web 2.0   Save To Blogmarks   Save To Shadows   Save To stumbleupon   Save To Reddit