QT uses its own windeployqt to generate EXE to publish software

Source: Internet
Author: User

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

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.