"Go" QT uses its own WINDEPLOYQT generation 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 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

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.