当前位置:网站首页>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
边栏推荐
- Detailed explanation of four modes of distributed transaction (Seata)
- Amazon, express, lazada, shopee, eBay, wish, Wal Mart, Alibaba international, meikeduo and other cross-border e-commerce platforms evaluate how Ziyang account can seize traffic by using products in th
- Yolov5进阶之八 高低版本格式转换问题
- Showmebug entered Tencent conference, opening the era of professional technical interview
- C language to implement a password manager (under update)
- [opengl] geometry shader
- Pytorch深度学习和目标检测实战笔记
- Zzuli:1054 monkeys eat peaches
- [opengl] pre bake using computational shaders
- Address book sorting
猜你喜欢

Tonybot humanoid robot infrared remote control play 0630

Dllexport et dllimport

Creation of data table of Doris' learning notes

Puzzle (016.4) domino effect

puzzle(016.3)千丝万缕
![[ue4] geometry drawing pipeline](/img/30/9fcf83a665043fe57389d44c2e16a8.jpg)
[ue4] geometry drawing pipeline

tonybot 人形機器人 紅外遙控玩法 0630

tonybot 人形机器人 红外遥控玩法 0630

Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue

tonybot 人形机器人 查看端口并对应端口 0701
随机推荐
China PETG market forecast and Strategic Research Report (2022 Edition)
Bucket sorting in C language
[ue4] material and shader permutation
Qt development - scrolling digital selector commonly used in embedded system
论文分享:Generating Playful Palettes from Images
Luogu p5194 [usaco05dec]scales s solution
Write a 2-minute countdown.
How to color ordinary landscape photos, PS tutorial
[opengl] bone animation blending effect
[opengl] geometry shader
Zzuli:1045 numerical statistics
Niuke: crossing the river
Zzuli:1056 lucky numbers
Simulation of LS -al command in C language
Adc128s022 ADC Verilog design and Implementation
QT - draw something else
Sub-GHz无线解决方案Z-Wave 800 系列ZG23 soc和ZGM230S模块
PS tips - draw green earth with a brush
C language memory function
tonybot 人形機器人 紅外遙控玩法 0630