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

边栏推荐
- [community personas] exclusive interview with Ma Longwei: the wheel is not easy to use, so make it yourself!
- 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
- 零基础自学STM32-复习篇2——使用结构体封装GPIO寄存器
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
- 一个复制也能玩出花来
- 米家、涂鸦、Hilink、智汀等生态哪家强?5大主流智能品牌分析
- Template_ Quick sort_ Double pointer
- Data preparation
- Prepare for the autumn face-to-face test questions
- SSM 程序集
猜你喜欢

Black high-end responsive website dream weaving template (adaptive mobile terminal)

零基础自学STM32-野火——GPIO复习篇——使用绝对地址操作GPIO
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 9](/img/ed/0edff23fbd3880bc6c9dabd31755ac.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 9

Sword finger offer 29 Print matrix clockwise

RDD partition rules of spark

Audio and video engineer YUV and RGB detailed explanation

Structural theme model (I) STM package workflow

2022 China eye Expo, Shandong vision prevention and control exhibition, myopia, China myopia correction Exhibition

Building the prototype of library functions -- refer to the manual of wildfire
![[untitled] a query SQL execution process in the database](/img/de/700ee20934fc2cd4a019f761148ef9.png)
[untitled] a query SQL execution process in the database
随机推荐
Template_ Quick sort_ Double pointer
3D drawing ()
High number_ Vector algebra_ Unit vector_ Angle between vector and coordinate axis
Data preparation
有没有sqlcdc监控多张表 再关联后 sink到另外一张表的案例啊?全部在 mysql中操作
Advanced technology management - what is the physical, mental and mental strength of managers
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 8
Compact lidar global and Chinese markets 2022-2028: technology, participants, trends, market size and share Research Report
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19
PAT甲级 1033 To Fill or Not to Fill
RDD creation method of spark
在线怎么生成富文本
HttpRunnerManager安装(三)-Linux下配置myql数据库&初始化数据
A doctor's 22 years in Huawei
Sword finger offer 29 Print matrix clockwise
数据准备工作
Bigder: I felt good about the 34/100 interview, but I didn't receive the admission
2345文件粉碎,文件强力删除工具无捆绑纯净提取版
Follow the mouse's angle and keyboard events
[coppeliasim] efficient conveyor belt