Reputation:
I have made an application using pyqt5 and I want to give a glass effect in it's background without background image. How to do this?
Upvotes: 1
Views: 382
Reputation: 604
I guess you want this ==> setWindowOpacity
from PyQt5.QtWidgets import *
class main(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowOpacity(0.5)
self.resize(320,250)
self.show()
app = QApplication([])
window = main()
app.exec()
Upvotes: 0