コード例 #1
0
 def shape(self) -> QPainterPath:
     stroker = QPainterPathStroker()
     stroker.setWidth(10)
     stroker.setJoinStyle(Qt.MiterJoin)
     stroker.setCapStyle(Qt.RoundCap)
     stroker.setDashPattern(Qt.DashLine)
     return stroker.createStroke(self.__path)
コード例 #2
0
 def shape(self):
     stroker = QPainterPathStroker()
     stroker.setWidth(4)
     stroker.setCapStyle(Qt.RoundCap)
     return stroker.createStroke(self.path)