当前位置:网站首页>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
边栏推荐
- Table of mathematical constants by q779
- Zzuli:1053 sine function
- 洛谷P5536 【XR-3】核心城市 题解
- 556. 下一个更大元素 III : 简单构造模拟题
- Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
- Zzuli: cumulative sum of 1050 factorials
- Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue
- Creation of data table of Doris' learning notes
- [opengl] advanced chapter of texture - principle of flowmap
- CentOS7部署哨兵Redis(带架构图,清晰易懂)
猜你喜欢

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

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

dllexport和dllimport

How to query the baby category of tmall on Taobao

Use of form text box (I) select text

Solve the problem that PR cannot be installed on win10 system. Pr2021 version -premiere Pro 2021 official Chinese version installation tutorial

ConstraintLayout 的使用

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

复合类型(自定义类型)

pyQt界面制作(登录+跳转页面)
随机推荐
Fundamentals of PHP deserialization
mmdetection 学习率与batch_size关系
Write a 2-minute countdown.
【7.3】146. LRU caching mechanism
[engine development] in depth GPU and rendering optimization (basic)
Awvs batch operation script
Use of constraintlayout
Implement Gobang with C language
To improve efficiency or increase costs, how should developers understand pair programming?
Zzuli:1045 numerical statistics
Zzuli:1042 sum of sequence 3
远程服务器后台挂起 nohup
C language memory function
C language STR function
CentOS7部署哨兵Redis(带架构图,清晰易懂)
Container of symfony
[opengl] geometry shader
Plane vector addition
Yolov5进阶之九 目标追踪实例1
Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion