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)
def shape(self): stroker = QPainterPathStroker() stroker.setWidth(4) stroker.setCapStyle(Qt.RoundCap) return stroker.createStroke(self.path)