当前位置:网站首页>Vs+qt application development, set software icon icon
Vs+qt application development, set software icon icon
2022-07-03 14:49:00 【Jack1009HF】
VS+Qt application development , Set software icon Icon
Preface
VS edition :VS2019
QT edition :Qt5.12.3(msvc2017_64)
One 、 Insipid default icon Icon
VS+Qt Application development , Window title bar icon、 The task bar 、 Executable file (.exe) The default icons are used .
Although it can be used , But it can't satisfy a procedural ape's pursuit of beauty .
So how to set , Can I use my favorite app icon ?
Ugly default icon 


Two 、 How to set your favorite icon Icon ?
1. Choose your favorite Icon
Here are some good websites , You can download your favorite icon files by yourself :
2. Set the executable (.exe) Icon
The downloaded icon file (.ico) Put it into the project directory

stay VS in , Right click the item name -> add to -> resources ;

In the pop-up window , choice Icon-> Import -> Select the downloaded icon file ;

The icon file will be displayed in VS In the window of , It can be modified ;

Right-click the project name -> To regenerate the , The executable icon in the folder changes .

3. Set the title bar and taskbar icons
- Double click the resource file under the resource file in the solution (.qrc), eject Qt Resource editor ;

- Select the downloaded icon file , single click “ open ”;

- Close the resource editor interface (.qrc), And save the changes ;

- Double click the window file (.ui), Get into Qt Designer Editing ;

- Select the main window -> attribute windowIcon, single click “▼”-> Choose resources ;

- Select icon file , And click “OK”

- preservation Qt Designer after , sign out Designer Recompile project , The title bar and status bar icons have changed .
3、 ... and 、 effect
This completes the window title bar 、 The task bar 、 Executable file (.exe) Icon settings .
It's not so much ?


Four 、 Engineering source
边栏推荐
- Joomla! CMS 3.0~3.4.6 RCE
- Pytorch深度学习和目标检测实战笔记
- [qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?
- Zzuli:1045 numerical statistics
- Analysis of gene family characteristics - chromosome location analysis
- Tonybot humanoid robot infrared remote control play 0630
- Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue
- Qt development - scrolling digital selector commonly used in embedded system
- 论文分享:Generating Playful Palettes from Images
- Zzuli:1053 sine function
猜你喜欢

Implement Gobang with C language

tonybot 人形机器人 查看端口并对应端口 0701

Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder

Protobuf and grpc

Timecho of Tianmou technology completed an angel round financing of nearly 100 million yuan to create a native timing database of the industrial Internet of things

Detailed explanation of four modes of distributed transaction (Seata)
![[ue4] geometry drawing pipeline](/img/30/9fcf83a665043fe57389d44c2e16a8.jpg)
[ue4] geometry drawing pipeline

Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion

Dllexport and dllimport

C language fcntl function
随机推荐
FPGA blocking assignment and non blocking assignment
How to color ordinary landscape photos, PS tutorial
Yolov5进阶之八 高低版本格式转换问题
表单文本框的使用(一) 选择文本
C language to implement a password manager (under update)
tonybot 人形機器人 紅外遙控玩法 0630
[opengl] pre bake using computational shaders
Four data flows and cases of grpc
Luogu p4047 [jsoi2010] tribal division solution
Implement Gobang with C language
Zzuli:1059 highest score
Zhejiang University Edition "C language programming (4th Edition)" topic set reference ideas set
Zzuli:1058 solving inequalities
Get permissions dynamically
C language memory function
零拷贝底层剖析
Zzuli:1045 numerical statistics
Tonybot humanoid robot infrared remote control play 0630
Code writing and playing method of tonybot humanoid robot at fixed distance
Write a 2-minute countdown.