Qt5 C++ GUI Programming Cookbook
暫譯: Qt5 C++ GUI 程式設計食譜

Lee Zhi Eng

買這商品的人也買了...

商品描述

Key Features

  • Learn to make use of Qt5 to design and customize the look-and-feel of your application
  • Improve the visual quality of your application by utilizing the graphic rendering system and animation system provided by Qt5
  • A good balance of visual presentation and its contents will make an application appealing yet functional

Book Description

With the advancement of computer technology, the software market is exploding with tons of software choices for the user, making their expectations higher in terms of functionality and the look and feel of the application. Therefore, improving the visual quality of your application is vital in order to overcome the market competition and stand out from the crowd.

This book will teach you how to develop functional and appealing software using Qt5 through multiple projects that are interesting and fun. This book covers a variety of topics such as look-and-feel customization, GUI animation, graphics rendering, implementing Google Maps, and more. You will learn tons of useful information, and enjoy the process of working on the creative projects provided in this book.

What you will learn

  • Customize the look and feel of your application using the widget editor provided by Qt5
  • Change the states of the GUI elements to make them appear in a different form
  • Animating the GUI elements using the built-in animation system provided by Qt5
  • Draw shapes and 2D images in your application using Qt5’s powerful rendering system
  • Draw 3D graphics in your application by implementing OpenGL, an industry-standard graphical library to your project
  • Build a mobile app that supports touch events and export it to your device
  • Parse and extract data from an XML file, then present it on your software’s GUI
  • Display web content on your program and interact with it by calling JavaScript functions from C++, or calling C++ functions from the web content
  • Access to MySQL and SQLite databases to retrieve data and display it on your software’s GUI

About the Author

Lee Zhi Eng is a 3D artist-turned-programmer who worked in the video game industry as a game artist, game programmer, and a game programming lecturer. Later, he decided to take a break from games and ventured into software engineering by co-founding his current company, Reonyx Tech. Since then, he has been involved in multiple projects that are different from what he used to do, including geolocation and near-real-time navigation systems, Big Data analytics, and augmented reality. You can find out more about him at http://www.zhieng.com, or you can find out about his company at http://www.reonyx.com.

Table of Contents

  1. Look and Feel Customization
  2. States and Animations
  3. QPainter and 2D Graphics
  4. OpenGL Implementation
  5. Building a Touch Screen Application with Qt5
  6. XML Parsing Made Easy
  7. Conversion Library
  8. Accessing Databases
  9. Developing a Web Application Using Qt Web Engine

商品描述(中文翻譯)

#### 主要特點

- 學習如何利用 Qt5 設計和自訂應用程式的外觀與感受
- 通過使用 Qt5 提供的圖形渲染系統和動畫系統來改善應用程式的視覺品質
- 良好的視覺呈現與內容平衡將使應用程式既具吸引力又具功能性

#### 書籍描述

隨著計算機技術的進步,軟體市場充斥著大量的軟體選擇,使用者對於功能性和應用程式的外觀與感受的期望也隨之提高。因此,改善應用程式的視覺品質對於克服市場競爭並從人群中脫穎而出至關重要。

本書將通過多個有趣且有趣的專案教您如何使用 Qt5 開發功能性和吸引人的軟體。本書涵蓋了多種主題,如外觀與感受的自訂、GUI 動畫、圖形渲染、實現 Google Maps 等。您將學到大量有用的信息,並享受在本書提供的創意專案中工作的過程。

#### 您將學到的內容

- 使用 Qt5 提供的小部件編輯器自訂應用程式的外觀與感受
- 更改 GUI 元素的狀態,使其以不同的形式顯示
- 使用 Qt5 提供的內建動畫系統為 GUI 元素添加動畫
- 使用 Qt5 強大的渲染系統在應用程式中繪製形狀和 2D 圖像
- 通過在您的專案中實現 OpenGL(行業標準的圖形庫)來繪製 3D 圖形
- 建立一個支持觸控事件的移動應用程式並將其導出到您的設備
- 解析和提取 XML 文件中的數據,然後在您的軟體 GUI 上呈現
- 在您的程式中顯示網頁內容,並通過從 C++ 調用 JavaScript 函數或從網頁內容調用 C++ 函數來與其互動
- 訪問 MySQL 和 SQLite 數據庫以檢索數據並在您的軟體 GUI 上顯示

#### 關於作者

**李志榮**是一位從 3D 藝術家轉型為程式設計師的人,他曾在電子遊戲產業擔任遊戲藝術家、遊戲程式設計師和遊戲程式設計講師。後來,他決定暫時離開遊戲,進入軟體工程領域,並共同創立了他目前的公司 Reonyx Tech。自那時以來,他參與了多個與他過去工作不同的專案,包括地理定位和近實時導航系統、大數據分析和擴增實境。您可以在 http://www.zhieng.com 獲得更多關於他的資訊,或在 http://www.reonyx.com 獲得有關他公司的資訊。

#### 目錄

1. 外觀與感受的自訂
2. 狀態與動畫
3. QPainter 和 2D 圖形
4. OpenGL 實現
5. 使用 Qt5 建立觸控螢幕應用程式
6. XML 解析簡易入門
7. 轉換庫
8. 訪問數據庫
9. 使用 Qt Web Engine 開發網頁應用程式