Good afternoon I want to generate a transparency effect in my main window. But when executing the code the transparency is not executed and only a black background is set:
This is my code:
import sys
from PyQt5.QtWidgets import QMainWindow, QApplication
class Principal(QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
self.setGeometry(350,150,600,400)
QMainWindow.setStyleSheet(self,'Background-color:rgba(255, 215, 255,20)')
#El valor de 20 es el filtro alfa para la transparencia pero no funciona
app = QApplication([])
p = Principal()
p.show()
app.exec_()
Result I want to get:
Or an aeroglass effect completely "Only if possible"