C++ GUI Programming with Qt 4 (2ND)

  • ポイントキャンペーン

C++ GUI Programming with Qt 4 (2ND)

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Hardcover:ハードカバー版/ページ数 718 p.
  • 言語 ENG
  • 商品コード 9780132354165
  • DDC分類 005.133

Full Description


The Only Official, Best-Practice Guide to Qt 4.3 ProgrammingUsing 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 programmingCovers all Qt 4.2/4.3 changes, including Windows Vista support, native CSS support for widget styling, and SVG file generationContains separate 2D and 3D chapters, coverage of Qt 4.3's new graphics view classes, and an introduction to QPainter's OpenGL back-endIncludes new chapters on look-and-feel customization and application scriptingIllustrates Qt 4's model/view architecture, plugin support, layout management, event processing, container classes, and much morePresents advanced techniques covered in no other book-from creating plugins to interfacing with native APIsIncludes a new appendix on Qt Jambi, the new Java version of Qt

Contents

Series Editor's Note xiForeword xiiiPreface xvAcknowledgments xviiA Brief History of Qt xixPart I: Basic Qt 1. Getting Started 3Hello Qt 3Making Connections 5Laying Out Widgets 6Using the Reference Documentation 102. Creating Dialogs 13Subclassing QDialog 13Signals and Slots in Depth 20Rapid Dialog Design 23Shape-Changing Dialogs 31Dynamic Dialogs 38Built-in Widget and Dialog Classes 393. Creating Main Windows 45Subclassing QMain Window 46Creating Menus and Toolbars 50Setting Up the Status Bar 55Implementing the File Menu 57Using Dialogs 63Storing Settings 69Multiple Documents 71Splash Screens 744. Implementing Application Functionality 77The Central Widget 77Subclassing QTableWidget 78Loading and Saving 84Implementing the Edit Menu 87Implementing the Other Menus 91Subclassing QTableWidget Item 955. Creating Custom Widgets 105Customizing QtWidgets 105Subclassing QWidget 107Integrating Custom Widgets with QtDesigner 117Double Buffering 121Part II: Intermediate Qt 6. Layout Management 141Laying Out Widgets on a Form 141Stacked Layouts 147Splitters 149Scrolling Areas 152Dock Windows and Toolbars 154Multiple Document Interface 1577. Event Processing 167 Reimplementing Event Handlers 167 Installing Event Filters 172 Staying Responsive during Intensive Processing 175 8. 2D Graphics 179Painting with QPainter 180Coordinate System Transformations 185High-Quality Rendering with QImage 193Item-Based Rendering with Graphics View 195Printing 2179. Drag and Drop 227Enabling Drag and Drop 227Supporting Custom Drag Types 232Clipboard Handling 23710. Item View Classes 239Using the Item View Convenience Classes 240Using Predefined Models 247Implementing Custom Models 252Implementing Custom Delegates 26611. Container Classes 273Sequential Containers 274Associative Containers 282Generic Algorithms 285Strings, Byte Arrays, and Variants 28712. Input/Output 295Reading and Writing Binary Data 296Reading and Writing Text 301Traversing Directories 307Embedding Resources 308Inter-Process Communication 30913. Databases 315Connecting and Querying 316Viewing Tables 322Editing Records Using Forms 324Presenting Data in Tabular Forms 33014. Multithreading 339Creating Threads 340Synchronizing Threads 343Communicating with the Main Thread 349Using Qt's Classes in Secondary Threads 35615. Networking 359Writing FTP Clients 359Writing HTTP Clients 368Writing TCP Client-Server Applications 371Sending and Receiving UDP Datagrams 38116. XML 387Reading XML with QXmlStream Reader 388Reading XML with DOM 395Reading XML with SAX 400Writing XML 40417. Providing Online Help 407Tooltips, Status Tips, and "What's This?" Help 407Using a Web Browser to Provide Online Help 409Using QText Browser as a Simple Help Engine 411Using QtAssistant for Powerful Online Help 414Part III: Advanced Qt 18. Internationalization 419Working with Unicode 420Making Applications Translation-Aware 423Dynamic Language Switching 429Translating Applications 43519. Look and Feel Customization 439Using Qt Style Sheets 439Subclassing QStyle 45420. 3D Graphics 471Drawing Using OpenGL 471Combining OpenGL and QPainter 477Doing Overlays Using Framebuffer Objects 48421. Creating Plugins 491Extending Qt with Plugins 492Making Applications Plugin-Aware 502Writing Application Plugins 50522. Application Scripting 509Overview of the ECMA Script Language 510Extending Qt Applications with Scripts 519Implementing GUI Extensions Using Scripts 523Automating Tasks through Scripting 53023. Platform-Specific Features 543Interfacing with Native APIs 543Using ActiveX on Windows 547Handling X11 Session Management 55924. Embedded Programming 567Getting Started with Qt/Embedded Linux 568Customizing Qt/Embedded Linux 570Integrating Qt Applications with Qtopia 571Using Qtopia APIs 576Appendixes A. Obtaining and Installing Qt 589B. Building Qt Applications 593C. Introduction to Qt Jambi 605D. Introduction to C++ for Java and C# Programmers 623Index 665