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 the build is complete, locate the generated EXE file under the Release folder
Put the exe file under a separate folder
Under Start menu Qt5.5.0 find Qt5.5 for Desktop cmd run file, open run
cmd into exe folder, execute command windeployqt ***.exe
Then in the folder can see the published files, and even dependencies are resolved, directly can run
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.
"Turn from" Wavelet Linux
"Go" QT uses its own WINDEPLOYQT generation EXE to publish software