Book description
The popular open source KDE desktop environment for Unix was built with Qt, a C++ class library for writing GUI applications that run on Unix, Linux, Windows 95/98, Windows 2000, and Windows NT platforms. Qt emulates the look and feel of Motif, but is much easier to use. Best of all, after you have written an application with Qt, all you have to do is recompile it to have a version that works on Windows. Qt also emulates the look and feel of Windows, so your users get native-looking interfaces. Platform independence is not the only benefit. Qt is flexible and highly optimized. You'll find that you need to write very little, if any, platform-dependent code because Qt already has what you need. And Qt is free for open source and Linux development. Although programming with Qt is straightforward and feels natural once you get the hang of it, the learning curve can be steep. Qt comes with excellent reference documentation, but beginners often find the included tutorial is not enough to really get started with Qt. That's where Programming with Qt steps in. You'll learn how to program in Qt as the book guides you through the steps of writing a simple paint application. Exercises with fully worked out answers help you deepen your understanding of the topics. The book presents all of the GUI elements in Qt, along with advice about when and how to use them, so you can make full use of the toolkit. For seasoned Qt programmers, there's also lots of information on advanced 2D transformations, drag-and-drop, writing custom image file filters, networking with the new Qt Network Extension, XML processing, Unicode handling, and more. Programming with Qt helps you get the most out of this powerful, easy-to-use, cross-platform toolkit. It's been completely updated for Qt Version 3.0 and includes entirely new information on rich text, Unicode/double byte characters, internationalization, and network programming.
Publisher resources
Table of contents
- Special Upgrade Offer
- A Note Regarding Supplemental Files
- Preface
- 1. Introduction
- 2. First Steps in Qt Programming
- 3. Learning More About Qt
-
4. A Guided Tour Through the Simple Widgets
- General Widget Parameters
- Widget Styles
- Buttons
- Selection Widgets
- Widgets for Bounded-Range Input
- Scrollbars
- Menu-Related Widgets
- Arrangers
- Tab-Related Widgets
- Text-Entry Fields
- Labels
- Widgets for the Office
- Progress Bars
- Scrolled Views
- List Views
- Icon Views
- Widgets for Tabular Material
- Widgets for Displaying Rich Text
- 5. A Guided Tour Through the Qt Dialog Boxes
- 6. Using Layout Managers
- 7. Some Thoughts on GUI Design
- 8. Container Classes
- 9. Graphics
- 10. Text Processing
- 11. Working with Files and Directories
- 12. Interapplication Communication
- 13. Interfacing with the Operating System
- 14. Writing Your Own Widgets
- 15. Focus Handling
- 16. Advanced Event Handling
- 17. Advanced Signals and Slots
- 18. Providing Help
- 19. Accessing Databases
- 20. Multithreading
- 21. Debugging
- 22. Portability
- 23. Qt Network Programming
- 24. Interfacing Qt with Other Languages and Libraries
- 25. Using the Visual C++ IDE for Qt Programs
-
26. Visual Design with Qt Designer
- Why Do You Need A GUI Designer?
- Creating a Simple Application with the Help of Qt Designer
- Adding Functionality to a Dialog Box by Subclassing
- Using Layout Management
-
Useful Techniques
- Working with Signals and Slots
- Changing the Tab Order
- All About Layout Management
- Integrating Qt Designer Files into Your Project
- Using qmake for Generating and Building Qt Designer Files
- Using Project Management
- Creating Main Windows
- Accessing Databases from Qt Designer
- Accessing the Help System
- Dynamically Creating Forms at Runtime
- Custom Widgets
-
A. Answers to Exercises
-
Answers to Exercises in Chapter
2
- Answers to Exercises in the Section “Hello, world!”
- Answers to Exercises in the Section “Using the Qt Reference Documentation”
- Answers to Exercises in the Section “Adding an Exit Button”
- Answers to Exercises in the Section “Introduction to Signals and Slots”
- Answers to Exercises in the Section “Event Handling and Simple Drawings with QPainter”
- Answers to Exercises in Chapter 3
-
Answers to Exercises in Chapter
2
- Index
- Colophon
- Special Upgrade Offer
- Copyright
Product information
- Title: Programming with Qt, 2nd Edition
- Author(s):
- Release date: January 2002
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596000646
You might also like
book
C++ GUI Programming with Qt 4
The Only Official, Best-Practice Guide to Qt 4.3 Programming Using Trolltech's Qt you can build industrial-strength …
book
C++ GUI Programming with Qt 4
The Only Official Best-Practice Guide to Qt 4.1 Programming Using Trolltech's Qt you can build industrial-strength …
book
Advanced Qt Programming: Creating Great Software with C++ and Qt 4
Source code provided for this title. Master Qt’s Most Powerful APIs, Patterns, and Development Practices Qt …
book
Hands-On Embedded Programming with Qt
A comprehensive guide that will get you up and running with embedded software development using Qt5 …