Qt5 C++ GUI Programming Cookbook 2nd Edition

Lee Zhi Eng

  • 出版商: Packt Publishing
  • 出版日期: 2019-03-25
  • 售價: $1,760
  • 貴賓價: 9.5$1,672
  • 語言: 英文
  • 頁數: 428
  • 裝訂: Paperback
  • ISBN: 1789803829
  • ISBN-13: 9781789803822
  • 相關分類: C++ 程式語言Qt使用者介面 UI
  • 海外代購書籍(需單獨結帳)
    無現貨庫存(No stock available)



Key Features

  • Learn to use Qt 5 to design and customize the look and feel of your application
  • Improve the visual quality of an application by using graphics rendering and animation
  • Understand the balance of presentation and web content that will make an application appealing yet functional

Book Description

With the growing need to develop GUIs for multiple targets and multiple screens, improving the visual quality of your application becomes important so that it stands out from your competitors. With its cross-platform ability and the latest UI paradigms, Qt makes it possible to build intuitive, interactive, and user-friendly user interfaces for your applications.

Qt5 C++ GUI Programming Cookbook, Second Edition teaches you how to develop functional and appealing user interfaces using the latest version of QT5 and C++. This book will help you learn a variety of topics such as GUI customization and animation, graphics rendering, implementing Google Maps, and more. You will also be taken through advanced concepts like asynchronous programming, event handling using signals and slots, network programming, various aspects of optimizing your application.

By the end of the book, you will be confident to design and customize GUI applications that meet your clients' expectations and have an understanding of best practice solutions for common problems.

What you will learn

  • Animate GUI elements using Qt5's built-in animation system
  • Draw shapes and 2D images using Qt5's powerful rendering system
  • Implement an industry-standard OpenGL library in your project
  • Build a mobile app that supports touch events and exports it onto devices
  • Parse and extract data from an XML file and present it on your GUI
  • Interact with web content by calling JavaScript functions from C++
  • Access MySQL and SQLite databases to retrieve data and display it on your GUI

Who this book is for

This intermediate-level book is designed for those who want to develop software using Qt 5. If you want to improve the visual quality and content presentation of your software application, this book is for you. Prior experience of C++ programming is required.



  • 學習使用Qt 5設計和自定義應用程式的外觀和感覺

  • 通過使用圖形渲染和動畫來提高應用程式的視覺品質

  • 了解呈現和網頁內容的平衡,使應用程式既有吸引力又具有功能性



《Qt5 C++ GUI Programming Cookbook, Second Edition》教您如何使用最新版本的QT5和C++開發功能性和吸引人的用戶界面。本書將幫助您學習各種主題,如GUI自定義和動畫、圖形渲染、實現Google Maps等。您還將學習到高級概念,如異步編程、使用信號和槽進行事件處理、網絡編程以及優化應用程式的各個方面。



  • 使用Qt5內置的動畫系統為GUI元素添加動畫效果

  • 使用Qt5強大的渲染系統繪製形狀和2D圖像

  • 在項目中實現行業標準的OpenGL庫

  • 構建支持觸摸事件並將其導出到設備上的移動應用程式

  • 解析和提取XML文件中的數據並在GUI上呈現

  • 通過從C++調用JavaScript函數與網頁內容交互

  • 訪問MySQL和SQLite數據庫以檢索數據並在GUI上顯示


本中級書籍適用於希望使用Qt 5開發軟體的人。如果您想改善軟體應用程式的視覺品質和內容呈現,本書適合您。需要有C++編程的先備知識。


Table of Contents

  1. Look-and-Feel Customization with Qt Designer
  2. Event Handling - Signals and Slots
  3. States and Animations with Qt and QML
  4. QPainter and 2D Graphics
  5. Open GL Implementation
  6. Using Network and Managing Large Documents
  7. Threading Basics - Asynchronous Programming
  8. Building a Touch Screen Application with Qt5
  9. XML Parsing Made Easy
  10. Conversion Library
  11. Accessing Databases with SQL Driver and Qt
  12. Develop Web Application using Qt WebEngine
  13. Performance Optimization



  1. 使用Qt Designer進行外觀自定義

  2. 事件處理 - 信號和槽

  3. 使用Qt和QML進行狀態和動畫

  4. QPainter和2D圖形

  5. Open GL實現

  6. 使用網絡和管理大型文檔

  7. 多線程基礎 - 非同步編程

  8. 使用Qt5構建觸摸屏應用程序

  9. 簡化XML解析

  10. 轉換庫

  11. 使用SQL驅動程序和Qt訪問數據庫

  12. 使用Qt WebEngine開發Web應用程序

  13. 性能優化