"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