1. Build a Release mode project
after building successful, the folder in the project folder Release file generation .exe file:
if you run the .exe file error, not able to find a number of .dll files:
because the .exe file If there is a dependency on other files, you can use windeployqt to solve it, and release a complete set of programs and their dependent library files.
2. Find the Qt cmd tool in the start menu and open the corresponding version of the cmd command line
3. Enter the build directory:
run the command
windeployqt
Test.exe windeployqt will help us solve the file dependencies, the library files needed by the program are all generated in In the folder, and the resource file has also been compiled into the binary file.