当前位置:网站首页>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
边栏推荐
- Several sentences extracted from the book "leather bag"
- 556. The next larger element III
- Zzuli:1045 numerical statistics
- Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion
- Get permissions dynamically
- Sword finger offer 28 Symmetric binary tree
- My QT learning path -- how qdatetimeedit is empty
- 零拷贝底层剖析
- dllexport和dllimport
- 复合类型(自定义类型)
猜你喜欢

Code writing and playing method of tonybot humanoid robot at fixed distance

puzzle(016.3)千丝万缕

dllexport和dllimport

Talking about part of data storage in C language

pyQt界面制作(登录+跳转页面)

QT - draw something else

How to color ordinary landscape photos, PS tutorial

retrofit

Puzzle (016.3) is inextricably linked

Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
随机推荐
Protobuf and grpc
Creation of data table of Doris' learning notes
retrofit
Zzuli:1046 product of odd numbers
Talking about part of data storage in C language
China PETG market forecast and Strategic Research Report (2022 Edition)
C language dup2 function
【7.3】146. LRU缓存机制
牛客 BM83 字符串變形(大小寫轉換,字符串反轉,字符串替換)
Common commands for getting started with mongodb database
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution
Zzuli:1053 sine function
Simulation of LS -al command in C language
洛谷P5194 [USACO05DEC]Scales S 题解
Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder
[ue4] material and shader permutation
Detailed explanation of four modes of distributed transaction (Seata)
C language DUP function
C language STR function
C language to realize mine sweeping