当前位置:网站首页>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
边栏推荐
- QT - draw something else
- dllexport和dllimport
- 亚马逊、速卖通、Lazada、Shopee、eBay、wish、沃尔玛、阿里国际、美客多等跨境电商平台,测评自养号该如何利用产品上新期抓住流量?
- China PETG market forecast and Strategic Research Report (2022 Edition)
- Piwigo 2.7.1 sqli learning
- 牛客 BM83 字符串变形(大小写转换,字符串反转,字符串替换)
- [ue4] HISM large scale vegetation rendering solution
- CentOS7部署哨兵Redis(带架构图,清晰易懂)
- 2021-10-16 initial programming
- Adc128s022 ADC Verilog design and Implementation
猜你喜欢

Four data flows and cases of grpc

Tonybot Humanoïde Robot Infrared Remote play 0630

adc128s022 ADC verilog设计实现

How to query the baby category of tmall on Taobao

Pyqt interface production (login + jump page)

C language to realize mine sweeping
![[ue4] cascading shadow CSM](/img/83/f4dfda3bd5ba0172676c450ba7693b.jpg)
[ue4] cascading shadow CSM

How to color ordinary landscape photos, PS tutorial

Detailed explanation of four modes of distributed transaction (Seata)

Talking about part of data storage in C language
随机推荐
Container of symfony
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
Sub GHz wireless solution Z-Wave 800 Series zg23 SOC and zgm230s modules
基因家族特征分析 - 染色体定位分析
Yolov5进阶之七目标追踪最新环境搭建(二)
Joomla! CMS 3.0~3.4.6 RCE
Solve the problem that PR cannot be installed on win10 system. Pr2021 version -premiere Pro 2021 official Chinese version installation tutorial
retrofit
Puzzle (016.4) domino effect
Yolov5进阶之九 目标追踪实例1
Luogu p3065 [usaco12dec]first! G problem solution
ASTC texture compression (adaptive scalable texture compression)
C language memory function
Adc128s022 ADC Verilog design and Implementation
Four data flows and cases of grpc
洛谷P5194 [USACO05DEC]Scales S 题解
Talking about part of data storage in C language
Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million
China PETG market forecast and Strategic Research Report (2022 Edition)
dllexport和dllimport