Dup Goto 📝

WindowAttributes1

PT2/aw/lang/pysideex 07-31 13:46:41
To Pop
13 lines, 20 words, 255 chars Monday 2023-07-31 13:46:41

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)