当前位置:网站首页>QT icon application
QT icon application
2022-04-23 06:42:00 【~Ha】
One 、 Get ready
To add icons to your application, you first need to prepare a .ico Format image file , Ordinary pictures don't work . Here we can use this website http://ico.hillcloud.net/, Upload ordinary pictures to the website for online conversion , Then download the backup , And rename the picture : myapp.ico
Two 、 View help documents
open Qt, Select Help options , Search for Setting, Select the first search result Setting the Application Icon, Double-click to open
Open and slide down , Find the tutorial shown below :
3、 ... and 、 Add Icon
Put the prepared icon file in myapp.ico To Qt Under the project directory of , Create a new text document and rename it myapp.rc, Here's the picture
Make sure the two files are in the same directory , Otherwise, compilation will fail
Then use Notepad to open myapp.rc
Copy this code to the file , preservation , sign out
IDI_ICON1 ICON "myapp.ico"
Return to the editing interface of the project , Open the configuration file of the project (.pro Final document ), Add code at the bottom :
RC_FILE = myapp.rc
Finally, recompile the project , Icon addition complete
版权声明
本文为[~Ha]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230548244983.html
边栏推荐
猜你喜欢
浮点数双精度,单精度以及半精度知识总结
【UDS统一诊断服务】二、网络层协议(2)— 数据传输规则(单帧与多帧)
gcc ,g++,gdb的安装
[UDS unified diagnostic service] IV. typical diagnostic service (5) - function / component test function unit (routine function unit 0x31)
jenkspy包安装
Swagger2 generates API documents
Vscode custom comments
cv_bridge 与opencv 版本不匹配的解决
卷积神经网络实现CIFAR100数据集分类
[UDS unified diagnosis service] i. diagnosis overview (1) - diagnosis overview
随机推荐
Programmers can also write novels
GDB debugger installation and use
grub boot. S code analysis
1006 finding a mex (hdu6756)
Initialization of classes and objects (constructors and destructors)
利用文件保存数据(c语言)
Notes on advanced points of C language 4
sqlite3加密版
PM2 deploy nuxt related commands
【学习一下】HF-Net 训练
C语言实用小技巧合集(持续更新)
File viewing commands and user management commands
C语言进阶要点笔记2
【UDS统一诊断服务】四、诊断典型服务(2)— 数据传输功能单元
ArcGIS license错误-15解决方法
sqlite编译
【UDS统一诊断服务】二、网络层协议(1)— 网络层概述与功能
猜數字遊戲
Figure guessing game
类的继承与派生