Integrated development Environment Qtcreator currently generates graphical interface program EXE can be divided into two categories:
qt Widgets Application and QT Quick application.
Here are the two types of EXE publishing methods.
First Class Qt Widgets application executable Release method
It means to create a Qt Widgets application Project
Below to publish the software:
Build EXE program in release mode , that is, debug run mode select Release
After successful operation, the EXE file will be generated under the release folder of the source project folder.
Copy the Project.exe executable file to a different folder, where I copy to c \ memo \ Next
Under Start menu Qt5.5.0 find Qt5.5 for Desktop cmd run file, open run
cmd into C: \ memo \ Execute command windeployqt project3.exe
Then you can see the published file under the C + + memo, and even the dependencies are resolved and can be run directly
The release method of the second kind of Qt Quick application
That is, the QT Quick application project is created, similar in operation.
Build EXE program in Release mode
EXE file generated under the Project Release folder
Put in a folder, then open the qt cmd command, enter
WINDEPLOYQT Project3.exe--qmldir C:\Qt\Qt5.5.0\5.5\mingw492_32\qml
(EXE file name has QT installation path depending on your own)
The release file is then generated under the memo. can be run directly.
QT uses its own windeployqt to generate EXE to publish software