C++ GUI Programming with Qt 4 (PAP/CDR)

  • ポイントキャンペーン

C++ GUI Programming with Qt 4 (PAP/CDR)

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版/ページ数 537 p.
  • 言語 ENG
  • 商品コード 9780131872493
  • DDC分類 005.437

Full Description


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 programmingCovers all Qt fundamentals, from dialogs and windows to implementing application functionalityIntroduces best practices for layout management and event processingShows 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 classesContains completely updated material in every chapterPresents advanced Qt 4 techniques covered in no other book, from creating both Qt and application plugins to interfacing with native APIsContains an in-depth appendix on C++/Qt programming for experienced Java developersThe 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.

Contents

Foreword ixPreface xiAcknowledgments xiiiA Brief History of Qt xvPart IBasic Qt 1. Getting Started 3Hello Qt 3Making Connections 5Laying Out Widgets 6Using the Reference Documentation 92. Creating Dialogs 13Subclassing QDialog 13Signals and Slots in Depth 20Rapid Dialog Design 23Shape-Changing Dialogs 29Dynamic Dialogs 36Built-in Widget and Dialog Classes 373. Creating Main Windows 43Subclassing QMainWindow 44Creating Menus and Toolbars 48Setting Up the Status Bar 52Implementing the File Menu 54Using Dialogs 61Storing Settings 67Multiple Documents 68Splash Screens 714. Implementing Application Functionality 73The Central Widget 73Subclassing QTableWidget 74Loading and Saving 80Implementing the Edit Menu 83Implementing the Other Menus 87Subclassing QTableWidgetItem 915. Creating Custom Widgets 101Customizing Qt Widgets 101Subclassing QWidget 103Integrating Custom Widgets with Qt Designer 113Double Buffering 116Part II: Intermediate Qt 6. Layout Management 137Laying Out Widgets on a Form 137Stacked Layouts 143Splitters 145Scrolling Areas 148Dock Widgets and Toolbars 150Multiple Document Interface 1527. Event Processing 163Reimplementing Event Handlers 163Installing Event Filters 168Staying Responsive During Intensive Processing 1718. 2D and 3D Graphics 175Painting with QPainter 175Painter Transformations 180High-Quality Rendering with QImage 188Printing 190Graphics with OpenGL 1989. Drag and Drop 205Enabling Drag and Drop 205Supporting Custom Drag Types 210Clipboard Handling 21510. Item View Classes 217Using the Item View Convenience Classes 218Using Predefined Models 225Implementing Custom Models 230Implementing Custom Delegates 24411. Container Classes 251Sequential Containers 252Associative Containers 260Generic Algorithms 263Strings, Byte Arrays, and Variants 26512. Input/Output 273Reading and Writing Binary Data 274Reading and Writing Text 279Traversing Directories 285Embedding Resources 286Inter-Process Communication 28713. Databases 293Connecting and Querying 294Presenting Data in Tabular Form 299Implementing Master-Detail Forms 30414. Networking 311Writing FTP Clients 311Writing HTTP Clients 320Writing TCP Client-Server Applications 323Sending and Receiving UDP Datagrams 33315. XML 339Reading XML with SAX 339Reading XML with DOM 344Writing XML 34816. Providing Online Help 351Tooltips, Status Tips, and "What's This?" Help 351Using QTextBrowser as a Simple Help Engine 353Using Qt Assistant for Powerful Online Help 356Part III: Advanced Qt17. Internationalization 361Working with Unicode 362Making Applications Translation-Aware 365Dynamic Language Switching 371Translating Applications 37618. Multithreading 381Creating Threads 381Synchronizing Threads 385Communicating with the Main Thread 391Using Qt's Classes in Secondary Threads 39619. Creating Plugins 399Extending Qt with Plugins 400Making Applications Plugin-Aware 408Writing Application Plugins 41220. Platform-Specific Features 415Interfacing with Native APIs 415Using ActiveX on Windows 419Handling X11 Session Management 43121. Embedded Programming 439Getting Started with Qtopia 440Customizing Qtopia Core 441Appendix A. Installing Qt 447Appendix B. Introduction to C++ for Java and C# Programmers 451Index 493

最近チェックした商品