How to publish a Qt Widgets desktop application
How to publish a Qt Widgets desktop application
Qt is an excellent cross-platform development framework that can run on desktops, mobile platforms, and embedded platforms. Currently, there are few posts on the introduction program of Qt 5. Everyone wants to know how to release the Qt application, so I spent a little time introducing how to release the Qt desktop application.
Shanghai Meng dream Information Technology Limited Company (microblogging: http://weibo.com/qtdream) original articles, the first address: http://qtdream.com/topic/113. Welcome to the discussion.
First, let's start with the simplest project Qt Widgets. The Qt Widgets Project is a project template with the least dependencies except the Qt Console project. However, we will deploy this application in a very simple way.
1, Create a Qt Widgets project. Here we name the project TestQtWidgetsApp:
2, Run our project and we can see the result. It is an empty form;
3, Suppose we have developed this program, how can we release it? Many methods have been proposed on the Internet, except that we use the windeployqt utility provided by Qt. Here I will introduce a more convenient method. Using this method, you can stop opening the black screen program hitting command, and simply enter some text on the project panel to solve this problem. See:
That is, enter
Command: windeployqt
Parameter: % {buildDir}/% {CurrentBuild: Type}/% {CurrentProject: namecmd.exe
Working directory: % {buildDir}
In this case, you will find that all dependencies have been deployed in the released folder. Very convenient.