安裝 Qt

Qt 包含了執行 KINGSTAR 範例程式所需的必要元件,因此執行範例前需先安裝 Qt 。

Qt 將隨時間更新,此說明使用 5.12.9 版本。

  1. Qt 提供線上與離線安裝檔,建議使用離線安裝檔,雖然離線安裝檔需要較長時間下載,其在安裝過程較快速且不會受任何網路連接狀態干擾。
  2. 離線安裝檔可至 https://www.qt.io/offline-installers 下載,於 5.12.x Offline Installers 中點選 Windows Host 下的安裝連結。

  3. 下載完成後,會看到名為 qt-opensource-windows-x86-5.12.9.exe 的檔案,雙擊安裝檔啟動安裝 Qt ,在 Qt 5.12.9 Setup 窗格中的 Welcome to the Qt 5.12.9 installer 頁面點擊 Next
  4. Qt Account – Your unified login to everything Qt 頁面中需輸入您的 Qt 帳戶資訊以繼續安裝(若無帳戶可至 https://login.qt.io/register 建立),完成後,請點擊 Next
  5. Qt Open Source Usage Obligations 頁面中勾選 I have read and approve the obligations of using Open Source Qt 並輸入您的公司或企業名稱,若您為個人使用 Qt 則勾選 I am an individual person not using Qt for any company 並點擊 Next
  6. Setup - Qt 5.12.9 頁面點擊 Next
  7. Installation Folder 頁面中選擇欲安裝 Qt 的位置,您可以接受預設的安裝路徑,或點選 Browse 選擇另一個位置,完成後,請點擊 Next
  8. Select Components 頁面中展開 Qt 5.12.9 並勾選 MSVC 2017 64-bit,於 Developer and Designer Tools 中請確認 Qt Creator 4.12.2 CDB Debugger Support 確實勾選。,完成後,請點擊 Next
  9. License Agreement 頁面,勾選 I have read and agree to the terms contained in the license agreements,然後點擊 Next
  10. Start Menu shortcuts 頁面,輸入名稱以在 Start 選單中建立新的字典,或可使用欲設名稱,完成後,請點擊 Next
  11. Ready to Install 頁面中點擊 Install
  12. 安裝完成後,點擊 Next
  13. 最後於 Completing the Qt 5.12.9 Wizard 頁面點擊 Finish