lang/pysideex/ WindowAttributes1
Translucent Backgrounds
win.setAttribute(Qt.WA_TranslucentBackground, True)
class MyWidget(QWidget):
...
def paintEvent(self,event):
...
bg = self.rect()
col = QColor.fromRgb(255,255,255,127)
painter.fillRect(bg,col)