I have a QPainterPath and I want to crop an image which is QPixmap. This code worked for me but I want to use PyQt5 builtin functionality like mask without numpy Answer One possible way to replace mask is to use the setClipPath() method of QPainter:
I have a QPainterPath and I want to crop an image which is QPixmap. This code worked for me but I want to use PyQt5 builtin functionality like mask without numpy Answer One possible way to replace mask is to use the setClipPath() method of QPainter: