PyQt
PyQt copied to clipboard
widget.setMask multiple rects in pyQt5
https://stackoverflow.com/questions/72833464/widget-setmask-multiple-rects-in-pyqt5
maybe you can use paintEvent
like:
class PaintWidget(QWidget):
def paintEvent(self, event):
painter = QPainter(self)
painter.setPen(QPen(1, Qt.black))
painter.fillRect(self.rect(), Qt.yellow)
I want make mask for yellow area. So, Hope to show only yellow area on widget, and other side want to hide.