Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/p/y/pyqt5-HEAD/examples/widgets/shapedclock.py   pyqt5(Download)
    def resizeEvent(self, event):
        side = min(self.width(), self.height())
 
        maskedRegion = QRegion(self.width()/2 - side/2, self.height()/2 - side/2, side, side, QRegion.Ellipse)
        self.setMask(maskedRegion)