当前位置:网站首页>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 .

边栏推荐
- 力扣今日題-729. 我的日程安排錶 I
- Global and Chinese market of commercial cheese crushers 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets of nasal oxygen tubes 2022-2028: Research Report on technology, participants, trends, market size and share
- 【机器人手眼标定】eye in hand
- 更改对象属性的方法
- MySQL winter vacation self-study 2022 11 (7)
- 继承的构造函数
- Httprunnermanager installation (III) - configuring myql Database & initialization data under Linux
- [coppeliasim] efficient conveyor belt
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 14
猜你喜欢

"Hands on learning in depth" Chapter 2 - preparatory knowledge_ 2.5 automatic differentiation_ Learning thinking and exercise answers

【机器人库】 awesome-robotics-libraries
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 23](/img/72/a80ee7ee7b967b0afa6018070d03c9.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 23
![[untitled] a query SQL execution process in the database](/img/de/700ee20934fc2cd4a019f761148ef9.png)
[untitled] a query SQL execution process in the database

Httprunnermanager installation (III) - configuring myql Database & initialization data under Linux
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 21](/img/73/4050a592fdd99bf06e8fd853b157b6.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 21
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 14](/img/c5/dde92f887e8e73d7db869fcddc107f.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 14

Structural theme model (I) STM package workflow

Minecraft 1.18.1、1.18.2模组开发 22.狙击枪(Sniper Rifle)
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 7](/img/44/1861f9016e959ed7c568721dd892db.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 7
随机推荐
Pat grade a 1033 to fill or not to fill
在线怎么生成富文本
Formatting occurs twice when vs code is saved
I changed the driver to 5.1.35, but it is still the same error. I can succeed even now, but I will report this every time I do an SQL operation
会员积分营销系统操作的时候怎样提升消费者的积极性?
MySQL (IV) - transactions
The third level of C language punch in
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 11
零基础自学STM32-野火——GPIO复习篇——使用绝对地址操作GPIO
力扣今日题-729. 我的日程安排表 I
What should we pay attention to when using the built-in tool to check the health status in gbase 8C database?
2020.02.11
729. My schedule I / offer II 106 Bipartite graph
3D drawing ()
[coppeliasim] efficient conveyor belt
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19
Compact lidar global and Chinese markets 2022-2028: technology, participants, trends, market size and share Research Report
【coppeliasim】高效传送带
MySQL winter vacation self-study 2022 11 (9)
Six stone management: why should leaders ignore product quality