Expression painter:setclip(qpainterpath) sets the current clipping region to be the interior of the specified path. Argument brush must be a Qt variant of type qt.QPainterPath.
painter:setclip(qpainterpath)
brush
qt.QPainterPath