1e41f4b71Sopenharmony_ci# Using Qt Creator on Windows
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciQt Creator is a cross-platform integrated development environment that enables you to get started and perform application development operations efficiently and easily. The graphics framework provides a Qt Creator project for you to quickly get familiar with the graphics framework.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ciThis topic describes how to install Qt Creator and Git on the Windows PC, obtain the minimum code repository of the UI simulator, and build and run the project.
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci## Software Installation
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ciYou need to download and install QT Creator and Git.
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci### Installing Qt Creator
12e41f4b71Sopenharmony_ciDownload Qt from the official website [https://www.qt.io/offline-installers](https://www.qt.io/offline-installers).
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ciSelect the following three components during the installation:
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci![Select installation components](figures/graphic_lite_qt_install.png)
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci### Installing and Configuring Git
19e41f4b71Sopenharmony_ciDownload Git from the [official website](https://git-scm.com/).
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci![Git official website](figures/graphic_lite_git_download.png "Git official website")
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ciDouble-click the downloaded installation program and complete the installation as prompted.
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci## Obtaining the Minimum Code Repository of the UI Simulator
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci### Source Code Acquisition
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ciRun the following git commands to pull the minimum code repository of the UI simulator.
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ci```git
32e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/arkui_ui_lite.git                        -b   master  foundation/arkui/ui_lite
33e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/graphic_graphic_utils_lite.git           -b   master  foundation/graphic/graphic_utils_lite
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/graphic_surface_lite.git                 -b   master  foundation/graphic/surface_lite
36e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/window_window_manager_lite.git           -b   master  foundation/window/window_window_manager_lite
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_zlib.git                     -b   master  third_party/zlib
39e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_qrcodegen.git                -b   master  third_party/qrcodegen
40e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_libpng.git                   -b   master  third_party/libpng
41e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_libjpeg.git                  -b   master  third_party/libjpeg
42e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_icu.git                      -b   master  third_party/icu
43e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_harfbuzz.git                 -b   master  third_party/harfbuzz
44e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_freetype.git                 -b   master  third_party/freetype
45e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_bounds_checking_function.git -b   master  third_party/bounds_checking_function
46e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_cJSON.git                    -b   master  third_party/cJSON
47e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_giflib.git                   -b   master  third_party/giflib
48e41f4b71Sopenharmony_cigit clone https://gitee.com/openharmony/third_party_libjpeg-turbo.git            -b   master  third_party/libjpeg-turbo
49e41f4b71Sopenharmony_ci```
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ci1. Create a source code project directory.
52e41f4b71Sopenharmony_ci2. Right-click the new directory and choose **Git Bash Here**.
53e41f4b71Sopenharmony_ci3. Copy and paste the preceding commands to the terminal, press **Enter**, and wait until the download is complete. Alternatively, create a **clone.bat** file in the directory, copy and save the preceding commands, double-click **clone.bat**, and wait until the download is complete.
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ci  ![Downloading source code](figures/graphic_lite_git_clone.png "Download source code")
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci### Opening Qt Creator
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci1. Choose **File > Open File or Project**.
60e41f4b71Sopenharmony_ci2. Select the project in the displayed dialog box.
61e41f4b71Sopenharmony_ci
62e41f4b71Sopenharmony_ciThe path of the source code is as follows:
63e41f4b71Sopenharmony_ci```bash
64e41f4b71Sopenharmony_cifoundation/arkui/ui_lite/tools/qt/simulator/simulator.pro
65e41f4b71Sopenharmony_ci```
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ciNote: When you open the project for the first time, select only **minGW** in the **kits** list on the **Configure Project** page.
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ci![Opening a project](figures/graphic_lite_qt_project_open.png "Open project")
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ci3. Click **Configure Project** to load the project.
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ci![Selecting minGW](figures/graphic_lite_qt_project_open2.png "Select minGW")
74e41f4b71Sopenharmony_ci
75e41f4b71Sopenharmony_ci### UI Test Application Running Entry
76e41f4b71Sopenharmony_ci
77e41f4b71Sopenharmony_ciExpand the project tree.
78e41f4b71Sopenharmony_ci
79e41f4b71Sopenharmony_ci```
80e41f4b71Sopenharmony_cisimulator
81e41f4b71Sopenharmony_ci  |-UITest
82e41f4b71Sopenharmony_ci    |-Sources
83e41f4b71Sopenharmony_ci      |-main.cpp
84e41f4b71Sopenharmony_ci```
85e41f4b71Sopenharmony_ci![Project tree](figures/graphic_lite_qt_project_run.png "Project tree")
86e41f4b71Sopenharmony_ci
87e41f4b71Sopenharmony_ci### Build
88e41f4b71Sopenharmony_ci
89e41f4b71Sopenharmony_ciChoose **Build > Build Project "simulator"**, or right-click the project tree and choose **Rebuild**.
90e41f4b71Sopenharmony_ci
91e41f4b71Sopenharmony_ci![Build](figures/graphic_lite_qt_project_build.png "Build")
92e41f4b71Sopenharmony_ci
93e41f4b71Sopenharmony_ci### Debugging
94e41f4b71Sopenharmony_ci
95e41f4b71Sopenharmony_ciClick the running triangle in the lower left corner to run the code, and click the debugging button to start debugging.
96e41f4b71Sopenharmony_ci
97e41f4b71Sopenharmony_ci![Running window](figures/graphic_lite_qt_project_debug.png "Running window")
98e41f4b71Sopenharmony_ci
99e41f4b71Sopenharmony_ci![Test UI](figures/graphic_lite_qt_project_demo.png "Test UI")
100