当前位置:网站首页>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 .
边栏推荐
- Accident index statistics
- [coppeliasim] efficient conveyor belt
- Use image components to slide through photo albums and mobile phone photo album pages
- How to generate rich text online
- [postgraduate entrance examination English] prepare for 2023, learn list5 words
- 2345文件粉碎,文件强力删除工具无捆绑纯净提取版
- The intelligent material transmission system of the 6th National Games of the Blue Bridge Cup
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 24
- 事故指标统计
- 一位博士在华为的22年
猜你喜欢
Audio and video engineer YUV and RGB detailed explanation
MySQL winter vacation self-study 2022 11 (9)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
High number_ Vector algebra_ Unit vector_ Angle between vector and coordinate axis
剑指 Offer 30. 包含min函数的栈
【社区人物志】专访马龙伟:轮子不好用,那就自己造!
Zero basic self-study STM32 wildfire review of GPIO use absolute address to operate GPIO
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 7
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
Minecraft 1.18.1, 1.18.2 module development 22 Sniper rifle
随机推荐
论文笔记: 极限多标签学习 GalaXC (暂存, 还没学完)
Spark accumulator
Y a - t - il des cas où sqlcdc surveille plusieurs tables et les associe à une autre? Tout fonctionne dans MySQL
【MySQL 15】Could not increase number of max_open_files to more than 10000 (request: 65535)
Building the prototype of library functions -- refer to the manual of wildfire
Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
Advanced technology management - what is the physical, mental and mental strength of managers
Adapter-a technology of adaptive pre training continuous learning
构建库函数的雏形——参照野火的手册
Use Scrollview and tabhost to realize vertical scrollbars and tabs
【社区人物志】专访马龙伟:轮子不好用,那就自己造!
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19
更改对象属性的方法
继承的构造函数
[postgraduate entrance examination English] prepare for 2023, learn list5 words
Number conclusion LC skimming review - 1
Global and Chinese markets of general purpose centrifuges 2022-2028: Research Report on technology, participants, trends, market size and share
【MySQL 15】Could not increase number of max_ open_ files to more than 10000 (request: 65535)
MySQL winter vacation self-study 2022 11 (6)
inherited constructors