Python3学习笔记之PYQt5真透明窗口

PYQt5真透明窗口


##核心代码

from  PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QWidget
a=QWidget()
a.setWindowFlags(Qt.FramelessWindowHint) #去掉窗口标题栏和按钮
a.setAttribute(Qt.WA_TranslucentBackground) #设置窗口真透明

猜你喜欢

转载自blog.csdn.net/weixin_45198643/article/details/91126556
今日推荐