Release issues after Qt Development

Source: Internet
Author: User

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.

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.