Release issues after Qt Development
Release issues after Qt Development
Qt is a cross-platform C ++ graphical user interface application development framework, which can be used to easily develop various types of applications. However, with the development of Qt, the functions become more and more powerful, and more files are required for release. It is difficult to pick out the required files during the release. Many beginners have spent a few days not allowing their programs to run smoothly on others' computers.
Baidu "qt program publishing" can find some articles. The methods shown in are to find the desired files one by one. In fact, it does not need to be so difficult. Qt has provided a small tool to help us release the program.
Open the installation path of Qt, and we can see an executable program named "windeployqt". Its usage is also very simple.
For example, we have an application named DrawTest.exe in "C: \ Users \ Public \ Documents \ TEMP \ MyProgram.
This program is developed using Qt. We can clear irrelevant files in this directory, leaving only this executable program.
Use the command line tool of Qt to enter this directory. Run windeployqt DrawTest.exe.
After that, all the required Qt support files will be copied. That's simple.
Of course, if your program still depends on other libraries, you still need to select it by yourself. Windeployqt is only responsible for Qt-related files.
Then, you can use NSIS packaging tools to create the installation program.