没有合适的资源?快使用搜索试试~ 我知道了~
C++ GUI Programming with QT4,second Edition
5星 · 超过95%的资源 需积分: 10 16 下载量 60 浏览量
2013-09-09
16:18:43
上传
评论 3
收藏 15.12MB PDF 举报
温馨提示
试读
734页
本书详细讲述了使用最新的Qt版本进行图形用户界面应用程序开发的各个方面。全书分为四个部分共24章及4个附录:第一部分介绍了Qt的基础知识和编写用户界面应用程序时所需的基本概念;第二和第三部分主要讲解Qt的中高级编程,包括布局管理、事件处理、二维/三维图形、拖放、项视图类、容器类、输入/输出、数据库、多线程、网络、XML、国际化、嵌入式编程等内容;第四部分为附录内容,分别介绍了Qt的获取和安装、Qt应用程序的构建、QtJambi和C++的基础知识。对于本书讲授的大量Qt 4编程原理和实践,都可以轻易将其应用于Qt 4.4、Qt4.5及后续版本的Qt程序的开发过程中。
资源推荐
资源详情
资源评论
C++ GUI Programming with Qt 4, Second Edition
by Jasmin Blanchette; Mark Summerfield
Publisher: Prentice Hall
Pub Date: February 04, 2008
Print ISBN-10: 0-13-235416-0
Print ISBN-13: 978-0-13-235416-5
eText ISBN-10: 0-13-714397-4
eText ISBN-13: 978-0-13-714397-9
Pages: 752
Table of Contents
| Index
Overview
The Only Official, Best-Practice Guide to Qt 4.3 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 source code changes. Now, two Trolltech insiders have written a start-to-finish guide to getting
outstanding results with the latest version of Qt: Qt 4.3.
Packed with realistic examples and in-depth advice, this is the book Trolltech uses to teach Qt to its own new hires. Extensively
revised and expanded, it reveals today's best Qt programming patterns for everything from implementing model/view architecture
to using Qt 4.3's improved graphics support. You'll find proven solutions for virtually every GUI development task, as well as
sophisticated techniques for providing database access, integrating XML, using subclassing, composition, and more. Whether
you're new to Qt or upgrading from an older version, this book can help you accomplish everything that Qt 4.3 makes possible.
Completely updated throughout, with significant new coverage of databases, XML, and Qtopia embedded programming•
Covers all Qt 4.2/4.3 changes, including Windows Vista support, native CSS support for widget styling, and SVG file
generation
•
Contains separate 2D and 3D chapters, coverage of Qt 4.3's new graphics view classes, and an introduction to QPainter's
OpenGL back-end
•
Includes new chapters on look-and-feel customization and application scripting•
Illustrates Qt 4's model/view architecture, plugin support, layout management, event processing, container classes, and
much more
•
Presents advanced techniques covered in no other bookâ€from creating plugins to interfacing with native APIs•
Includes a new appendix on Qt Jambi, the new Java version of Qt•
1
C++ GUI Programming with Qt 4, Second Edition
by Jasmin Blanchette; Mark Summerfield
Publisher: Prentice Hall
Pub Date: February 04, 2008
Print ISBN-10: 0-13-235416-0
Print ISBN-13: 978-0-13-235416-5
eText ISBN-10: 0-13-714397-4
eText ISBN-13: 978-0-13-714397-9
Pages: 752
Table of Contents
| Index
Copyright
Series Editor's Note
Foreword
Preface
Acknowledgments
A Brief History of Qt
Part I: Basic Qt
Chapter 1. Getting Started
Hello Qt
Making Connections
Laying Out Widgets
Using the Reference Documentation
Chapter 2. Creating Dialogs
Subclassing QDialog
Signals and Slots in Depth
Rapid Dialog Design
Shape-Changing Dialogs
Dynamic Dialogs
Built-in Widget and Dialog Classes
Chapter 3. Creating Main Windows
Subclassing QMainWindow
Creating Menus and Toolbars
Setting Up the Status Bar
Implementing the File Menu
Using Dialogs
Storing Settings
Multiple Documents
Splash Screens
Chapter 4. Implementing Application Functionality
The Central Widget
Subclassing QTableWidget
Loading and Saving
Implementing the Edit Menu
Implementing the Other Menus
Subclassing QTableWidgetItem
Chapter 5. Creating Custom Widgets
Customizing Qt Widgets
Subclassing QWidget
Integrating Custom Widgets with Qt Designer
Double Buffering
Part II: Intermediate Qt
Chapter 6. Layout Management
Laying Out Widgets on a Form
Stacked Layouts
Splitters
Scrolling Areas
Dock Windows and Toolbars
Multiple Document Interface
Chapter 7. Event Processing
Reimplementing Event Handlers
Installing Event Filters
Staying Responsive during Intensive Processing
Chapter 8. 2D Graphics
Painting with QPainter
Coordinate System Transformations
High-Quality Rendering with QImage
Item-Based Rendering with Graphics View
Printing
Chapter 9. Drag and Drop
Enabling Drag and Drop
Supporting Custom Drag Types
Clipboard Handling
2
Chapter 10. Item View Classes
Using the Item View Convenience Classes
Using Predefined Models
Implementing Custom Models
Implementing Custom Delegates
Chapter 11. Container Classes
Sequential Containers
Associative Containers
Generic Algorithms
Strings, Byte Arrays, and Variants
Chapter 12. Input/Output
Reading and Writing Binary Data
Reading and Writing Text
Traversing Directories
Embedding Resources
Inter-Process Communication
Chapter 13. Databases
Connecting and Querying
Viewing Tables
Editing Records Using Forms
Presenting Data in Tabular Forms
Chapter 14. Multithreading
Creating Threads
Synchronizing Threads
Communicating with the Main Thread
Using Qt's Classes in Secondary Threads
Chapter 15. Networking
Writing FTP Clients
Writing HTTP Clients
Writing TCP Clientâ€Server Applications
Sending and Receiving UDP Datagrams
Chapter 16. XML
Reading XML with QXmlStreamReader
Reading XML with DOM
Reading XML with SAX
Writing XML
Chapter 17. Providing Online Help
Tooltips, Status Tips, and "What's This?" Help
Using a Web Browser to Provide Online Help
Using QTextBrowser as a Simple Help Engine
Using Qt Assistant for Powerful Online Help
Part III: Advanced Qt
Chapter 18. Internationalization
Working with Unicode
Making Applications Translation-Aware
Dynamic Language Switching
Translating Applications
Chapter 19. Look and Feel Customization
Using Qt Style Sheets
Subclassing QStyle
Chapter 20. 3D Graphics
Drawing Using OpenGL
Combining OpenGL and QPainter
Doing Overlays Using Framebuffer Objects
Chapter 21. Creating Plugins
Extending Qt with Plugins
Making Applications Plugin-Aware
Writing Application Plugins
Chapter 22. Application Scripting
Overview of the ECMAScript Language
Extending Qt Applications with Scripts
Implementing GUI Extensions Using Scripts
Automating Tasks through Scripting
Chapter 23. Platform-Specific Features
Interfacing with Native APIs
Using ActiveX on Windows
Handling X11 Session Management
Chapter 24. Embedded Programming
Getting Started with Qt/Embedded Linux
Customizing Qt/Embedded Linux
Integrating Qt Applications with Qtopia
Using Qtopia APIs
Part IV: Appendixes
Appendix A. Obtaining and Installing Qt
A Note on Licensing
3
Installing Qt/Windows
Installing Qt/Mac
Installing Qt/X11
Appendix B. Building Qt Applications
Using qmake
Using Third-Party Build Tools
Appendix C. Introduction to Qt Jambi
Getting Started with Qt Jambi
Using Qt Jambi in the Eclipse IDE
Integrating C++ Components with Qt Jambi
Appendix D. Introduction to C++ for Java and C# Programmers
Getting Started with C++
Main Language Differences
The Standard C++ Library
About the Authors
Jasmin Blanchette
Mark Summerfield
Production
Index
4
Copyright
In association with Trolltech Press
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those
designations appear in this book, and the publisher was aware of a trademark claim, the designations 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 warranty 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
For sales outside the United States, please contact:
International Sales
Visit us on the Web: www.prenhallprofessional.com
Library of Congress Cataloging-in-Publication Data
Blanchette, Jasmin.
C++ GUI programming with Qt 4 / Jasmin Blanchette, Mark Summerfield.-2nd ed.
p. cm.
Includes index.
ISBN-13: 978-0-13-235416-5 (hardcover : alk. paper)
1. Qt (Electronic resource) 2. Graphical user interfaces (Computer systems) 3. C++ (Computer program
language) I. Summerfield, Mark. II. Title.
QA76.9.U83B532 2008
005.13'3â€dc22
2008000243
Copyright © 2008 Trolltech ASA
All rights reserved. Printed in the United States of America. This publication 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 available at
http://www.opencontent.org/openpub/).
Trolltech
®
, Qt
®
, Qtopia
®
, and the Trolltech and Qtopia logos are registered trademarks of Trolltech ASA.
ISBN-13: 978-0-13-235416-5
Text printed in the United States on recycled paper at Courier in Westford, Massachusetts.
First printing, February 2008
5
剩余733页未读,继续阅读
资源评论
- 李玄览2013-09-13很清楚,还有书签
- alexmayer2014-07-01有书签,清晰,感谢分享。
虬枝宇
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- TG-2024-05-23-204718255.mp4
- 候志强@181 5428 8938_20240420112107.amr
- spispispispispi
- 实验二:IP协议分析.zip
- 驱动代码驱动代码驱动代码驱动代码
- SVID_20240523_141155_1.mp4
- Code for the complete guide to tkinter tutorial
- 关于百货中心供应链管理系统.zip
- SimpleFolderIcon-master 修改Unity的Project下的文件夹图标
- A python Tkinter widget to display tile based maps
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功