Qt download installation and configuration tutorial

Enter the qt Chinese website: https://www.qt.io/zh-cn/
insert image description hereinsert image description here

Download the open source version
insert image description here

Scroll down and download the Qt online installer
insert image description here

It has detected that mine is a windows system, just click download directly. If it is another system, you need to find the installation package corresponding to your own system.
insert image description here

Then it is related to the speed of the network, and it will be downloaded automatically after a while
insert image description here

Wait for the download to complete, double-click the .exe file to install it.
The first is to log in to the qt account, if not, you can register one yourself. Then select an individual user, and then click Next to proceed with the installation.
insert image description here

If there is a network error reported during the period, please refer to my article: https://blog.csdn.net/changyana/article/details/128357923
If there is no error reported, then continue down:
This step is to ask what you have about qt Suggestions for improvement, I choose no directly here, and then proceed to the next step
insert image description here

Then change the installation directory of qt. Personally, it is not recommended to put it on the C drive, because the software is too large, which will affect the subsequent software operation. So I chose to put it on the D drive. Then for the options below, I personally recommend choosing the first one. The first one is to choose and install the required components according to your own needs, and the following are the components directly configured by the official, which will install a lot of unnecessary content, so it is recommended to selectively install according to your own needs.
insert image description here

For each component, I found a blogger's explanation, the link is here: https://blog.csdn.net/Yang_yang121/article/details/125058223?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none -task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-1-125058223-blog-125619848.pc_relevant_3mothn_strategy_and_data_recovery&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7E default%7EBlogCommendFromBaidu%7ERate-1-125058223-blog-125619848 .pc_relevant_3mothn_strategy_and_data_recovery&utm_relevant_index=1
insert image description here

I chose MinGW here and there are some basic components that need to be available
insert image description here

insert image description here

Then click Next, check Agree
insert image description here
and keep clicking Next to complete the installation! (Note, during the download and installation, there may be prompts from time to time that some resources cannot be obtained, just click [Retry]! Personally, it is best to keep watching during the downloading process, and click to allow re-download when there is a retry. Don't leave, it seems that if you leave for a long time, you will automatically disconnect, and you will not continue to download, and then you will report an error that the installation failed. You have to reopen the installer and try again...)
insert image description here

Then you can open Qt Creator!
insert image description here

It’s not over here, you need to check whether there are Qt related configurations in your environment variables, if not, you need to add them manually!
Just add the bin directory to it

insert image description here

insert image description here

Then even if the installation is complete!

Notice: After the installation is complete, if some components are missing or unchecked,Execute the following command to re-check.
Note that it must be opened with the command line, so that the source can be switched. Otherwise, the pull will fail, and only the installed components will be displayed, and no other components can be ticked.
The path in front of the command below is the path where you installed Qt, that is, enter the directory where qt is installed through cmd, open MaintenanceTool.exe and switch the source for it at the same time
D:\Software\Qt\MaintenanceTool.exe --mirror https://mirrors.ustc.edu.cn/qtproject

Guess you like

Origin blog.csdn.net/changyana/article/details/128366303