How to publish a Qt Widgets desktop application

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.