PyQt5 - 窗体透明度+窗体背景透明

MainWindow.setWindowOpacity(0.85)  # 设置窗口透明度

MainWindow.setAttribute(QtCore.Qt.WA_TranslucentBackground)  # 设置窗口背景透明


猜你喜欢

转载自blog.csdn.net/qq_42292831/article/details/94036248