pun*_*her 7 python qt pyqt
如何在QT上设置主窗口背景透明?我需要属性还是样式? 我已经尝试设置不透明度,但它对我不起作用.
app.setStyleSheet("QMainWindow {opacity:0}")
omi*_*mid 11
您必须为MainWindow对象设置新属性,如下所示:
class Main(QtGui.QMainWindow): def __init__(self): self.setAttribute(Qt.WA_TranslucentBackground)
归档时间:
12 年,6 月 前
查看次数:
3795 次
最近记录:
9 年,8 月 前