当前位置:网站首页>Pyqt5 setting window top left Icon
Pyqt5 setting window top left Icon
2022-06-23 06:05:00 【cjh_ hit】
Want to change the icon in the upper left corner of the window , You can refer to the following methods :
Give the code directly :
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(" Icon .ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
notes : Icon .ico Is the address of the icon resource
That is, the statement selected below :
边栏推荐
- Excel sheet column title for leetcode Title Resolution
- Pat class B 1009 C language
- JS interview question - anti shake function
- PAT 乙等 1014 C语言
- Leetcode topic analysis add binary
- Fraction to recursing decimal
- Pat class B 1025 reverse linked list
- Real MySQL interview question (23) -- pinduoduo ball game analysis
- Behind the hot digital collections, a strong technical team is needed to support the northern technical team
- 微软面试题:打印折纸的折痕
猜你喜欢

jvm-01.指令重排

jvm-03. JVM memory model

Cloud native database is the future

Summary of ant usage (I): using ant to automatically package apk

Visual studio debugging tips

Radar canvas

Real MySQL interview questions (XXVI) -- didi 2020 written examination questions

Explicability of counter attack based on optimal transmission theory

【Vivado那些事儿】XilinxCEDStore介绍

True MySQL interview question (21) - Finance - overdue loan
随机推荐
求二叉树最宽的层有多少个节点
PAT 乙等 1010 C语言
【DaVinci Developer专题】-41-APP SWC如何读取写入NVM Block数据
PAT 乙等 1014 C语言
Centos7 deploy radius service -freeradius-3.0.13-15 EL7 integrating MySQL
密码学系列之:PKI的证书格式表示X.509
十一、纺织面料下架功能的实现
matplotlib savefig多个图片叠加问题
jvm-03.jvm内存模型
Excel sheet column title for leetcode Title Resolution
三项最高级认证,两项创新技术、两大优秀案例,阿里云亮相云原生产业大会
mongodb 4.x绑定多个ip启动报错
The construction of digital factory can be divided into three aspects
Memory analysis and memory leak detection
Pat class B 1016 C language
Prometheus, incluxdb2.2 installation and flume_ Export download compile use
The difference between SaaS software and traditional software delivery mode
ant使用总结(三):批量打包apk
PAT 乙等 1009 C语言
PAT 乙等 1018 C语言