QT Executables Write version information

Source: Internet
Author: User



"1" New QT Project

1.1 Concrete New steps do not repeat.

1.2 After the new project file directory is as follows:

650) this.width=650; "src=" Http://images0.cnblogs.com/blog2015/389111/201505/152108244392394.png "style=" margin:0 px;padding:0px;border:0px; "/>

1.3 Pay attention to compare your code directory, you can find my file directory more than an RC type of resource files. Well, it's also the key point.

1.4 First you need to add this resource file.

    The method is simple: Create a new TXT file. Of course, the name according to the specific project, and then the suffix directly to the RC type can be.

What's in the file? See below ( Note: line breaks in files and so on can not be garbled ):

650) this.width=650; "id=" Code_img_closed_4bfb8f02-89a9-4160-9b68-3e6934c6e7d2 "class=" code_img_closed "src=" Http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif "style=" margin:0px;padding:0px 5px 0px 0px; border:0px;vertical-align:middle; "/> View Code

1.5 Second, add this file to the project.

    Note: Add a line to the project's pro file as follows

650) this.width=650; "src=" Http://images0.cnblogs.com/blog2015/389111/201505/152120188147648.png "style=" margin:0 px;padding:0px;border:0px; "/>

1.6 Finally, modify the contents of this RC file as needed. Build it up a bit.

Test method: Find the built exe executable file (eg:version.exe), right-click---> Properties---> Details tab.

The effect is as follows:

650) this.width=650; "src=" Http://images0.cnblogs.com/blog2015/389111/201505/152121378921790.png "style=" margin:0 px;padding:0px;border:0px; "/>


QT Executables Write version information

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.