当前位置:网站首页>QT release exe software and modify exe application icon
QT release exe software and modify exe application icon
2022-07-06 02:33:00 【Autodesk_ Glodon】
1、 modify exe App icons
1) Prepare one ico Icon
You need to prepare a ico Icon , Can be png Convert the picture to ico Icon , The icon size can be set to 128x128.
Can be in Icon online conversion website Conduct online conversion . After the conversion, you will xxx.ico The icon file is placed with .pro In the same directory :
2) stay .pro Add a line of code to the file
RC_ICONS = chess.ico //chess.ico Set the icon you want
3) perform qmake( structure –> perform qmake) And run

2、 Release exe Software
Usually after a successful build , It will be in the project folder Release Build in folder .exe file , This machine can run , Copying to someone else's computer will result in various missing prompts dll Error of , This is because there is no exe Dependency copying in the past , It is very troublesome to find dependencies one by one , therefore Qt Provides windeployqt To help solve the release problem .
Use windeployqt Release program
First put your own exe Copy to a new folder :
Then start your own Qt Version of the command line ,cd Go to your own folder :
And then execute windeployqt ChineseChessGame.exe that will do :

windeployqt Will help us solve the file dependency , The library files needed by the program are generated in the folder , And the resource files are compiled into binary files .
Run again this time ChineseChessGame.exe, You can see that the results are normal , End of release .

边栏推荐
- 2022 China eye Expo, Shandong vision prevention and control exhibition, myopia, China myopia correction Exhibition
- HDU_ p1237_ Simple calculator_ stack
- MySQL winter vacation self-study 2022 11 (8)
- 在线怎么生成富文本
- 数据准备工作
- Use image components to slide through photo albums and mobile phone photo album pages
- Accident index statistics
- Shell脚本更新存储过程到数据库
- Thinking on Architecture Design (under continuous updating)
- 【社区人物志】专访马龙伟:轮子不好用,那就自己造!
猜你喜欢
![[robot library] awesome robots Libraries](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[robot library] awesome robots Libraries
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18](/img/1a/94ef8be5c06c2d1c52fc8ce7f03ea7.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18

Building the prototype of library functions -- refer to the manual of wildfire

vs code保存时 出现两次格式化

Minecraft 1.18.1、1.18.2模组开发 22.狙击枪(Sniper Rifle)

Pat grade a 1033 to fill or not to fill

The intelligent material transmission system of the 6th National Games of the Blue Bridge Cup
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 9](/img/ed/0edff23fbd3880bc6c9dabd31755ac.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 9

Easy to use js script
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16](/img/c3/f3746b161012acc3751b2bd0b8f663.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
随机推荐
【coppeliasim】6自由度路径规划
【MySQL 15】Could not increase number of max_ open_ files to more than 10000 (request: 65535)
[untitled] a query SQL execution process in the database
HttpRunnerManager安装(三)-Linux下配置myql数据库&初始化数据
Global and Chinese markets hitting traffic doors 2022-2028: Research Report on technology, participants, trends, market size and share
论文笔记: 极限多标签学习 GalaXC (暂存, 还没学完)
Redis installation
模板_快速排序_双指针
在GBase 8c数据库中使用自带工具检查健康状态时,需要注意什么?
【MySQL 15】Could not increase number of max_open_files to more than 10000 (request: 65535)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
2022 China eye Expo, Shandong vision prevention and control exhibition, myopia, China myopia correction Exhibition
Template_ Find the reverse pair of permutations_ Sort based on merge
Follow the mouse's angle and keyboard events
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 11
Httprunnermanager installation (III) - configuring myql Database & initialization data under Linux
事故指标统计
SSM assembly
A doctor's 22 years in Huawei
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 20